code: def ops_factory():
      def make_factory():
          factory = OpsFactory()
          return factory
  
      yield make_factory
  
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 2 for calling a global function with example usage: ops_factory() and returns: factory