code: def get_op_size(record):
      assert OpsFactory.is_op(record)
      msg_size = json.loads(record.history.item[1].value_json)
      return msg_size
  
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 3 for calling the OpsFactory obj's underlying member method code with example usage: obj.get_op_size(record) and returns: msg_size