code: def deprecated_warning(msg: str) -> None:
      if (
          not torch.distributed.is_available
          or not torch.distributed.is_initialized()
          or (
              torch.distributed.is_initialized()
              and torch.distributed.get_rank() == 0
          )
      ):
          warnings.warn(msg, DeprecatedFeatureWarning)
  
file_path: apex/apex/__init__.py
imports: import logging
  import warnings
  import torch
  from .None import amp
  from .None import fp16_utils
  from .None import optimizers
  from .None import normalization
  from .None import transformer
label_desc: Use image node_id 2 for calling a global function with example usage: deprecated_warning(msg) without return types