code: def _convert_fft_type(dtype, value_type):
      from cupy.cuda import cufft
  
      if value_type == "C2C" and dtype == np.complex64:
          return cufft.CUFFT_C2C
      elif value_type == "R2C" and dtype == np.float32:
          return cufft.CUFFT_R2C
      elif value_type == "C2R" and dtype == np.complex64:
          return cufft.CUFFT_C2R
      elif value_type == "C2C" and dtype == np.complex128:
          return cufft.CUFFT_Z2Z
      elif value_type == "R2C" and dtype == np.float64:
          return cufft.CUFFT_D2Z
      elif value_type == "C2R" and dtype == np.complex128:
          return cufft.CUFFT_Z2D
      else:
          raise ValueError
  
imports: import functools
  import math
  import numpy
  import cupy
  from cupy.fft import config
  from cupy.fft._cache import get_plan_cache
label_desc: Use image node_id 4 for calling a global function with example usage: _convert_fft_type(dtype, value_type) and returns: cufft, cufft, cufft, cufft, cufft, cufft