class_docstr: Hard sampler.
code: def predict_one(self, x, **kwargs):
      return self.model.predict_one(x, **kwargs)
  
imports: from __future__ import annotations
  import collections
  import random
  import typing
  from river import base, linear_model, optim, utils
label_desc: Use image node_id 3 for calling the HardSampling obj's underlying member method code with example usage: obj.predict_one(x) and returns: self