code: def test_when_using_linear_regressor_with_given_parameters_then_fit_does_not_override_parameters():
      mdl = create_linear_regressor_with_given_parameters([1, 2, 3], 4)
  
      assert mdl.coefficients == pytest.approx([1, 2, 3])
      assert mdl.intercept == 4
  
      mdl.fit(np.random.normal(0, 1, (100, 3)), np.arange(100))
  
      assert mdl.coefficients == pytest.approx([1, 2, 3])
      assert mdl.intercept == 4
  
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 4 for calling a global function with example usage: test_when_using_linear_regressor_with_given_parameters_then_fit_does_not_override_parameters() without return types