code: def test_clone_estimator():
      obj = linear_model.LinearRegression(l2=42)
      obj.learn_one({"x": 3}, 6)
  
      new = obj.clone({"l2": 21})
      assert new.l2 == 21
      assert obj.l2 == 42
      assert new.weights == {}
      assert new.weights != obj.weights
  
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 1 for calling a global function with example usage: test_clone_estimator() without return types