code: def _convert_dtype(a, value_type):
      out_dtype = _output_dtype(a.dtype, value_type)
      if out_dtype != a.dtype:
          a = a.astype(out_dtype)
      return a
  
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 2 for calling a global function with example usage: _convert_dtype(a, value_type) and returns: a