code: def use_temporary_cache_dir():
      target = "cupy.fft._callback.get_cache_dir"
      with tempfile.TemporaryDirectory() as path:
          with mock.patch(target, lambda: path):
              yield path
  
imports: import contextlib
  import string
  import sys
  import tempfile
  from unittest import mock
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 1 for calling a global function with example usage: use_temporary_cache_dir() without return types