code: def _get_cached_dtype(dtype):
      """Returns an np.dtype for the TensorFlow DType."""
      global _cached_np_dtypes
      try:
          return _cached_np_dtypes[dtype]
      except KeyError:
          pass
      cached_dtype = np.dtype(dtype.as_numpy_dtype)
      _cached_np_dtypes[dtype] = cached_dtype
      return cached_dtype
  
file_path: tensorflow/tensorflow/python/ops/numpy_ops/np_dtypes.py
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 7 for calling a global function with example usage: _get_cached_dtype(dtype) and returns: cached_dtype, _cached_np_dtypes