code: def finfo(type: Union[Dtype, Array], /) -> finfo_object:
      """
      Array API compatible wrapper for :py:func:`np.finfo <numpy.finfo>`.
  
      See its docstring for more information.
      """
      fi = np.finfo(type)  # type: ignore
      # Note: The types of the float data here are float, whereas in NumPy they
      # are scalars of the corresponding float dtype.
      try:
          tiny = fi.smallest_normal
      except AttributeError:  # for backward compatibility
          tiny = fi.tiny
      return finfo_object(
          fi.bits,
          float(fi.eps),
          float(fi.max),
          float(fi.min),
          float(tiny),
      )
  
file_path: cupy/cupy/array_api/_data_type_functions.py
imports: from __future__ import annotations
  from ._array_object import Array
  from ._dtypes import _all_dtypes, _result_type
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, List, Tuple, Union
  import cupy
label_desc: Use image node_id 5 for calling a global function with example usage: finfo() and returns: finfo_object