code: def finfo(
      type: Union[DType, str, tf.Tensor, tf.Variable, np.ndarray], /
  ) -> Finfo:
      if isinstance(type, (tf.Tensor, np.ndarray)):
          type = type.dtype
      if ivy.as_native_dtype(type) == tf.bfloat16:
          return Finfo(Bfloat16Finfo())
      return Finfo(
          tf.experimental.numpy.finfo(ivy.as_native_dtype(type))
      )
  
imports: from typing import Optional, Union, Sequence, List
  import numpy
  import tensorflow
  from tensorflow.python.framework.dtypes import DType
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.ivy.data_type import _handle_nestable_dtype_info
  from .None import backend_version
label_desc: Use image node_id 4 for calling a global function with example usage: finfo() and returns: Finfo, Finfo