code: def _get_dtype(dtype):
      """Return np.complex128 for complex dtypes, np.float64 otherwise."""
      if np.issubdtype(dtype, np.complexfloating):
          return np.complex128
      else:
          return np.float64
  
file_path: scipy/scipy/interpolate/_ndbspline.py
imports: import operator
  import numpy
  from math import prod
  from .None import _bspl
label_desc: Use image node_id 1 for calling a global function with example usage: _get_dtype(dtype) and returns: np, np