code: def test_regressor_chain_w_fit_params():
      # Make sure fit_params are properly propagated to the sub-estimators
      rng = np.random.RandomState(0)
      X, y = datasets.make_regression(n_targets=3, random_state=0)
      weight = rng.rand(y.shape[0])
  
      class MySGD(SGDRegressor):
          def fit(self, X, y, **fit_params):
              self.sample_weight_ = fit_params["sample_weight"]
              super().fit(X, y, **fit_params)
  
      model = RegressorChain(MySGD())
  
      # Fitting with params
      fit_param = {"sample_weight": weight}
      model.fit(X, y, **fit_param)
  
      for est in model.estimators_:
          assert est.sample_weight_ is weight
  
imports: import re
  import numpy
  import pytest
  from joblib import cpu_count
  from sklearn import datasets
  from sklearn.base import ClassifierMixin, clone
  from sklearn.datasets import load_linnerud, make_classification, make_multilabel_classification, make_regression
  from sklearn.dummy import DummyClassifier, DummyRegressor
  from sklearn.ensemble import GradientBoostingRegressor, RandomForestClassifier, StackingRegressor
  from sklearn.exceptions import NotFittedError
  from sklearn.impute import SimpleImputer
  from sklearn.linear_model import Lasso, LinearRegression, LogisticRegression, OrthogonalMatchingPursuit, PassiveAggressiveClassifier, Ridge, SGDClassifier, SGDRegressor
  from sklearn.metrics import jaccard_score, mean_squared_error
  from sklearn.model_selection import GridSearchCV, train_test_split
  from sklearn.multiclass import OneVsRestClassifier
  from sklearn.multioutput import ClassifierChain, MultiOutputClassifier, MultiOutputRegressor, RegressorChain
  from sklearn.pipeline import make_pipeline
  from sklearn.svm import LinearSVC
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.utils import shuffle
  from sklearn.utils._testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from sklearn.utils.fixes import BSR_CONTAINERS, COO_CONTAINERS, CSC_CONTAINERS, CSR_CONTAINERS, DOK_CONTAINERS, LIL_CONTAINERS
label_desc: Use image node_id 31 for calling a global function with example usage: test_regressor_chain_w_fit_params() without return types