code: def record(event: Event, destination: str = "null") -> None:
      _get_or_create_logger(destination).info(event.serialize())
  
file_path: pytorch/torch/distributed/elastic/events/__init__.py
imports: import inspect
  import logging
  import os
  import socket
  import traceback
  from enum import Enum
  from typing import Dict, Optional
  from torch.distributed.elastic.events.handlers import get_logging_handler
  from .api import Event, EventMetadataValue, EventSource, NodeState, RdzvEvent
label_desc: Use image node_id 2 for calling a global function with example usage: record(event, destination) without return types