code: def __call__(self, rate, rng) -> int:
      return 1 if rng.random() <= rate else 0
  
imports: from __future__ import annotations
  import abc
  import collections
  import math
  import random
  import sys
  from river import base, drift, metrics, tree, utils
  from river.tree.nodes.et_nodes import ETLeafAdaptive, ETLeafMean, ETLeafModel
  from river.tree.splitter.random_splitter import RegRandomSplitter
label_desc: Use image node_id 1 for calling the SubBaggingSampler obj's underlying member method code with example usage: obj.__call__(rate, rng) and returns: unknown