code: def assert_valid_regression_inputs(
      X: Union[np.ndarray, pd.DataFrame],
      y: ArrayLike,
  ) -> Tuple[np.ndarray, np.ndarray]:
      """
      Checks that regression inputs are properly formatted and returns the inputs in numpy array format.
      """
      try:
          X = np.asarray(X)
      except:
          raise ValueError(f"X must be array_like.")
  
      y = check_dimension_and_datatype(y, "y")
      check_missing_values(y, text="y")
  
      if len(X) != len(y):
          raise ValueError("X and y must have same length.")
  
      return X, y
  
file_path: cleanlab/cleanlab/internal/regression_utils.py
imports: import numpy
  import pandas
  from numpy.typing import ArrayLike
  from typing import Tuple, Union
label_desc: Use image node_id 2 for calling a global function with example usage: assert_valid_regression_inputs(X, y) and returns: X,  y