code: def _numpy_to_tf_dtypes(numpy_dtype):
      """Returns a tensorflow dtype object corresponding to numpy's dtype.
  
      A :class:`ValueError` is raised if there is no known mapping between the types
  
      :param numpy_dtype: numpy dtype object
      :return: tensorflow dtype object
      """
      if numpy_dtype in _NUMPY_TO_TF_DTYPES_MAPPING:
          if numpy_dtype == np.unicode_ and sys.version_info >= (3, 0):
              warnings.warn(
                  "Tensorflow will convert all unicode strings back to bytes type. "
                  "You may need to decode values.",
                  UnicodeWarning,
              )
          return _NUMPY_TO_TF_DTYPES_MAPPING[numpy_dtype]
      else:
          raise ValueError(
              "Unknown mapping of numpy {} to tensorflow dtype".format(
                  numpy_dtype
              )
          )
  
imports: import datetime
  import sys
  import warnings
  from calendar import timegm
  from collections import OrderedDict, namedtuple
  from decimal import Decimal
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 5 for calling a global function with example usage: _numpy_to_tf_dtypes(numpy_dtype) and returns: _NUMPY_TO_TF_DTYPES_MAPPING