class_docstr: Metric object.
class_docstr_tok: ["Metric","object","."]
code: def _set_callback(
      self, cb: Callable[[pb.MetricRecord], None]
  ) -> None:
      self._callback = cb
  
file_path: wandb/wandb/sdk/wandb_metric.py
imports: import logging
  from typing import Callable, Optional, Sequence, Tuple
  from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 2 for calling the Metric obj's underlying member method code with example usage: obj._set_callback(cb) without return types