code: def model_name() -> str:
      """Returns distributed configuration name (given by ignite)
  
      - `serial` for no distributed configuration
      - `native-dist` for native torch distributed configuration
      - `xla-dist` for XLA distributed configuration
      - `horovod-dist` for Horovod distributed framework
  
      .. versionchanged:: 0.4.2
          `horovod-dist` will be returned for Horovod distributed framework.
      """
      if _need_to_sync and isinstance(_model, _SerialModel):
          sync(temporary=True)
  
      return _model.name
  
imports: import socket
  from contextlib import contextmanager
  from functools import wraps
  from typing import Any, Callable, List, Mapping, Optional, Tuple, Union
  import torch
  from ignite.distributed.comp_models import _SerialModel, has_hvd_support, has_native_dist_support, has_xla_support, registered_computation_models
  from ignite.utils import setup_logger
label_desc: Use image node_id 5 for calling a global function with example usage: model_name() and returns: _model