code: def base_dtype(dtype):
      """Returns a non-reference `dtype` based on this `dtype`."""
      dtype = dtypes.as_dtype(dtype)
      if hasattr(dtype, "base_dtype"):
          return dtype.base_dtype
      return dtype
  
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion
  from tensorflow.python.module import module
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling a global function with example usage: base_dtype(dtype) and returns: dtype, dtype