code: def make_bartpy_data(
      X: Union[np.ndarray, pd.DataFrame],
      y: np.ndarray,
      normalize: bool = True,
  ) -> "Data":
      X = format_covariate_matrix(X)
      y = y.astype(float)
      return Data(X, y, normalize=normalize)
  
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 5 for calling a global function with example usage: make_bartpy_data(X, y, normalize) and returns: Data