class_docstr: Abstract base class
class_docstr_tok: ["Abstract","base","class"]
code: def serialize(self):
      # We purposefully do not serialize the context as it can be large;
      # it will be transferred using a different mechanism and reset on the other
      # end.
      return {"_name": self._name, "_type": self._type}
  
imports: import time
  from contextlib import contextmanager
  from metaflow.sidecar import Message, MessageTypes, Sidecar
label_desc: Use image node_id 7 for calling the Metric obj's underlying member method code with example usage: obj.serialize() and returns: dict