code: def make_tempdir():
      d = Path(tempfile.mkdtemp())
      yield d
      shutil.rmtree(str(d))
  
file_path: thinc/thinc/tests/util.py
imports: import contextlib
  import shutil
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  from thinc.api import ArgsKwargs, Linear, Padded, Ragged
  from thinc.util import has_cupy, is_cupy_array, is_numpy_array
label_desc: Use image node_id 1 for calling a global function with example usage: make_tempdir() without return types