code: def test_clone_include_attributes():
      var = stats.Var()
      var.update(1)
      var.update(2)
      var.update(3)
  
      assert var._S == 2
      assert var.clone()._S == 0
      assert var.clone(include_attributes=True)._S == 2
  
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 2 for calling a global function with example usage: test_clone_include_attributes() without return types