code: def get_op_id(record):
      if not OpsFactory.is_op(record):
          return None
      msg_id = json.loads(record.history.item[2].value_json)
      return msg_id
  
imports: import json
  import time
  from dataclasses import dataclass
  from enum import Enum
  import pytest
  from wandb.proto import wandb_internal_pb2
  from wandb.sdk.internal import flow_control, settings_static
  from wandb.sdk.lib import proto_util
  from wandb.sdk.wandb_settings import Settings
label_desc: Use image node_id 4 for calling the OpsFactory obj's underlying member method code with example usage: obj.get_op_id(record) and returns: msg_id, None