code: def get_X_y(cs, n_samples, n_instance_features):
      X = convert_configurations_to_array(
          cs.sample_configuration(n_samples)
      )
  
      if n_instance_features is not None and n_instance_features > 0:
          X_inst = np.random.rand(n_samples, n_instance_features)
          X = np.hstack((X, X_inst))
  
      y = np.random.rand(n_samples)
  
      return X, y
  
imports: import numpy
  import pytest
  from smac.model.abstract_model import AbstractModel
  from smac.utils.configspace import convert_configurations_to_array
label_desc: Use image node_id 1 for calling a global function with example usage: get_X_y(cs, n_samples, n_instance_features) and returns: X,  y