code: def tempdir():
      with tempfile.TemporaryDirectory() as d:
          yield Path(d)
  
file_path: nni/test/ut/nas/test_utils.py
imports: import tempfile
  import pytest
  from pathlib import Path
  import torch
  from nni.nas.utils import *
label_desc: Use image node_id 1 for calling a global function with example usage: tempdir() without return types