code: def test_given_fitted_nonlinnear_mechanism_when_evaluate_unit_change_linear_input_only_method_then_raises_exception():
      with pytest.raises(AttributeError):
          unit_change_linear_input_only(
              SklearnRegressionModel(
                  RFR(n_jobs=1).fit(
                      np.random.normal(size=(100, 2)),
                      np.random.normal(size=100),
                  )
              ),
              pd.DataFrame(
                  data=dict(
                      A=np.random.normal(size=100),
                      B=np.random.normal(size=100),
                  )
              ),
              pd.DataFrame(
                  data=dict(
                      A=np.random.normal(size=100),
                      B=np.random.normal(size=100),
                  )
              ),
              ["A", "B"],
          )
  
imports: import numpy
  import pandas
  import pytest
  from flaky import flaky
  from sklearn.ensemble import RandomForestRegressor
  from sklearn.exceptions import NotFittedError
  from sklearn.linear_model import LinearRegression
  from dowhy.gcm.ml.regression import SklearnRegressionModel
  from dowhy.gcm.shapley import ShapleyConfig
  from dowhy.gcm.unit_change import SklearnLinearRegressionModel, unit_change, unit_change_linear, unit_change_linear_input_only, unit_change_nonlinear, unit_change_nonlinear_input_only
label_desc: Use image node_id 9 for calling a global function with example usage: test_given_fitted_nonlinnear_mechanism_when_evaluate_unit_change_linear_input_only_method_then_raises_exception() without return types