code: def _to_tf_type(dtype):
      """Converts a native python or numpy type to TF DType.
  
      Args:
        dtype: Could be a python type, a numpy type or a TF DType.
  
      Returns:
        A tensorflow `DType`.
      """
      return tf.as_dtype(dtype)
  
imports: import funcsigs
  import numpy
  import tensorflow.compat.v2
  from trax.tf_numpy.numpy_impl import arrays
  from trax.tf_numpy.numpy_impl import dtypes
label_desc: Use image node_id 3 for calling a global function with example usage: _to_tf_type(dtype) and returns: tf