code: def pod_factory(
      event_type,
      job_name,
      condition_types,
      condition_reasons,
      phase=None,
  ):
      """Factory for creating pod events.
  
      Args:
          event_type (str): The type of event to create.
          condition_types (list): The types of conditions to create.
          condition_reasons (list): The reasons of conditions to create.
  
      Returns:
          dict: The pod event.
      """
      return MockDict(
          {
              "type": event_type,
              "object": {
                  "metadata": {
                      "labels": {"job-name": job_name},
                  },
                  "status": {
                      "phase": phase,
                      "conditions": [
                          {
                              "type": condition_type,
                              "reason": condition_reason,
                          }
                          for condition_type, condition_reason in zip(
                              condition_types, condition_reasons
                          )
                      ],
                  },
              },
          }
      )
  
imports: import asyncio
  import base64
  import json
  from typing import Any
  from unittest.mock import MagicMock
  import pytest
  import wandb
  from kubernetes_asyncio.client import ApiException
  from wandb.sdk.launch._project_spec import LaunchProject
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.runner.kubernetes_monitor import CustomResource, LaunchKubernetesMonitor, _is_container_creating, _log_err_task_callback, _state_from_conditions, _state_from_replicated_status
  from wandb.sdk.launch.runner.kubernetes_runner import KubernetesRunner, KubernetesSubmittedRun, add_entrypoint_args_overrides, add_label_to_pods, add_wandb_env, maybe_create_imagepull_secret
label_desc: Use image node_id 15 for calling a global function with example usage: pod_factory(event_type, job_name, condition_types, condition_reasons, phase) and returns: MockDict