code: def complex_dtype_to_name(dtype) -> str:
      if dtype == np.complex128:
          return "cdouble"
      elif dtype == np.complex64:
          return "cfloat"
      else:
          raise RuntimeError(f"invalid complex type: {dtype}")
  
imports: import enum
  from typing import Any, List, Optional, Tuple, Union
  import numpy
  import pyopencl
  from pyopencl.tools import context_dependent_memoize
  from pyopencl.tools import dtype_to_ctype, DtypedArgument, VectorArg, ScalarArg, KernelTemplateBase, dtype_to_c_struct
  from pytools import memoize_method
label_desc: Use image node_id 10 for calling a global function with example usage: complex_dtype_to_name(dtype) and returns: str, str