code: def compute(train_indep_data, train_dep_data, test_indep_data):
      # Configure a Linear regression training object
      train_algo = d4p.linear_regression_training(
          interceptFlag=True, fptype="float"
      )
      # Now train/compute, the result provides the model for prediction
      train_result = train_algo.compute(
          train_indep_data, train_dep_data
      )
      # Now let's do some prediction
      predict_algo = d4p.linear_regression_prediction(fptype="float")
      # now predict using the model from the training above
      return (
          predict_algo.compute(test_indep_data, train_result.model),
          train_result,
      )
  
imports: import os
  import numpy
  import daal4py
  from daal4py.oneapi import sycl_buffer
label_desc: Use image node_id 1 for calling a global function with example usage: compute(train_indep_data, train_dep_data, test_indep_data) and returns: predict_algo,  train_result