code: def format_covariate_matrix(
      X: Union[np.ndarray, pd.DataFrame]
  ) -> np.ndarray:
      X = ensure_numpy_array(X)
      return ensure_float_array(X)
  
imports: from operator import gt, le
  from typing import Any, List, Optional, Union
  import numpy
  import pandas
  from .errors import NoSplittableVariableException
  from .splitcondition import SplitCondition
label_desc: Use image node_id 4 for calling a global function with example usage: format_covariate_matrix(X) and returns: ensure_float_array