code: def test_clone_nested_pipeline():
      model = time_series.SNARIMAX(
          p=2,
          d=1,
          q=3,
          regressor=(
              preprocessing.StandardScaler()
              | linear_model.LinearRegression(optimizer=optim.SGD(3e-2))
          ),
      )
      assert model.clone()._get_params() == model._get_params()
  
file_path: river/river/base/test_base.py
imports: from __future__ import annotations
  from river import compose, datasets, linear_model, optim, preprocessing, stats, time_series
label_desc: Use image node_id 8 for calling a global function with example usage: test_clone_nested_pipeline() without return types