code: def warn_if_not_float(
      X: np.ndarray, estimator: str = "This algorithm"
  ) -> bool:
      """Warning utility function to check that data type is floating point.
      Returns True if a warning was raised (i.e. the input is not float) and
      False otherwise, for easier input validation.
      """
      if not isinstance(estimator, str):
          estimator = estimator.__class__.__name__
      if X.dtype.kind != "f":
          warnings.warn(
              "%s assumes floating point values as input, "
              "got %s" % (estimator, X.dtype)
          )
          return True
      return False
  
file_path: auto-sklearn/autosklearn/util/common.py
imports: import os
  import warnings
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: warn_if_not_float(X, estimator) and returns: False, True