code: def add_from_record(self, record: Record) -> Optional[Context]:
      context_id = context_id_from_record(record)
      if not context_id:
          return None
      context_obj = self.add(context_id)
  
      # TODO(debug_context) see above
      # context_obj._debug_record = record
  
      return context_obj
  
file_path: wandb/wandb/sdk/internal/context.py
imports: import logging
  import threading
  from typing import Dict, Optional
  from wandb.proto.wandb_internal_pb2 import Record, Result
label_desc: Use image node_id 2 for calling the ContextKeeper obj's underlying member method code with example usage: obj.add_from_record(record) and returns: context_obj, None