code: def test_when_predict_with_linear_regressor_with_given_parameters_then_returns_expected_results():
      mdl = create_linear_regressor_with_given_parameters([2], 4)
  
      assert mdl.predict(np.array([0])) == approx(4)
      assert mdl.predict(np.array([1])) == approx(6)
      assert mdl.predict(np.array([0, 1, 2, 3])) == approx(
          [4, 6, 8, 10]
      )
  
file_path: dowhy/tests/gcm/test_ml.py
imports: import numpy
  import pytest
  from flaky import flaky
  from pytest import approx
  from sklearn.linear_model import LogisticRegression
  from dowhy.gcm.ml import SklearnClassificationModel, create_linear_regressor, create_linear_regressor_with_given_parameters, create_logistic_regression_classifier
label_desc: Use image node_id 5 for calling a global function with example usage: test_when_predict_with_linear_regressor_with_given_parameters_then_returns_expected_results() without return types