code: def _default_formatter():
      fmt = os.environ.get(LOG_FORMAT_ENV_VAR, None)
      if fmt is None:
          return TorchLogsFormatter()
      else:
          return logging.Formatter(fmt)
  
imports: import functools
  import itertools
  import logging
  import os
  import re
  from dataclasses import dataclass, field
  from importlib import __import__
  from typing import Dict, List, Optional, Set, Union
  from weakref import WeakSet
  import torch._guards
  import torch.distributed
label_desc: Use image node_id 15 for calling a global function with example usage: _default_formatter() and returns: TorchLogsFormatter, logging