code: def create_tempdir():
      with tempfile.TemporaryDirectory() as dirname:
          with chdir(dirname):
              yield dirname
  
imports: import contextlib
  import faulthandler
  import io
  import os
  import platform
  import signal
  import tempfile
  from typing import Optional
label_desc: Use image node_id 3 for calling a global function with example usage: create_tempdir() without return types