code: def _is_integral_float(y):
      return y.dtype.kind == "f" and np.all(y.astype(int) == y)
  
imports: from collections.abc import Sequence
  from itertools import chain
  from scipy.sparse import issparse
  from scipy.sparse.base import spmatrix
  from scipy.sparse import dok_matrix
  from scipy.sparse import lil_matrix
  import scipy.sparse
  import numpy
  import pandas
label_desc: Use image node_id 6 for calling a global function with example usage: _is_integral_float(y) and returns: unknown