code: def _promote_dtype(x):
      if x.dtype.kind in "bui":
          # use float64 instead of promote_types to match SciPy's behavior
          float_dtype = cupy.float64
      else:
          float_dtype = cupy.promote_types(x.dtype, cupy.float32)
      return x.astype(float_dtype, copy=False)
  
imports: import math
  import numbers
  import operator
  import numpy
  import cupy
  from cupy import _core
  from cupy.fft._fft import _cook_shape
  from cupyx.scipy.fft import _fft
label_desc: Use image node_id 1 for calling a global function with example usage: _promote_dtype(x) and returns: x