code: def is_op(record):
      record_type = record.WhichOneof("record_type")
      if record_type != "history":
          return False
      if record.history.item[0].key != "op":
          return False
      op_type = json.loads(record.history.item[0].value_json)
      if op_type != "data":
          return False
      return True
  
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 5 for calling the OpsFactory obj's underlying member method code with example usage: obj.is_op(record) and returns: True, False, False, False