code: def __init__(self, model, order: list | None = None):
      super().__init__()
      self.model = model
      self.order = order or []
  
imports: from __future__ import annotations
  import collections
  import copy
  import functools
  import random
  from river import base, linear_model
  from river.utils.math import minkowski_distance, prod
label_desc: Use image node_id 1 to create a new BaseChain object from inherited base classes: base, collections with example: obj = BaseChain(model, order)