code: def _normalize_type(*, dtype):
      if isinstance(dtype, np.dtype):
          dtype = dtype.type
      dtypes = {
          "bool": "bool",
          bool: "bool",
          np.bool8: "bool",
          tf.bool: "bool",
          "int": "int",
          int: "int",
          np.int8: "int",
          np.int16: "int",
          np.int32: "int",
          np.int64: "int",
          np.uint8: "int",
          np.uint16: "int",
          np.uint32: "int",
          np.uint64: "int",
          tf.int16: "int",
          tf.int32: "int",
          tf.int64: "int",
          "float": "float",
          float: "float",
          np.float16: "float",
          np.float32: "float",
          np.float64: "float",
          tf.float16: "float",
          tf.float32: "float",
          tf.float64: "float",
      }
      return dtypes.get(dtype, None)
  
imports: from functools import total_ordering
  import numpy
  import tensorflow
  from tensorforce import TensorforceError, util
  from tensorforce.core.utils import tf_util
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize_type() and returns: dtypes