code: def _is_integral_float(y):
      xp, is_array_api_compliant = get_namespace(y)
      return xp.isdtype(y.dtype, "real floating") and bool(
          xp.all(xp.astype((xp.astype(y, xp.int64)), y.dtype) == y)
      )
  
file_path: scikit-learn/sklearn/utils/multiclass.py
imports: import warnings
  from collections.abc import Sequence
  from itertools import chain
  import numpy
  from scipy.sparse import issparse
  from ..utils._array_api import get_namespace
  from ..utils.fixes import VisibleDeprecationWarning
  from .validation import _assert_all_finite, check_array
label_desc: Use image node_id 4 for calling a global function with example usage: _is_integral_float(y) and returns: unknown