code: def _sanity_check():
      from ignite.distributed.utils import _model
  
      assert (
          _model.get_world_size()
          == _model.get_nnodes() * _model.get_nproc_per_node()
      )
      assert _model.get_local_rank() < _model.get_nproc_per_node()
      assert _model.get_rank() < _model.get_world_size()
      assert _model.get_node_rank() < _model.get_nnodes()
  
file_path: ignite/tests/ignite/distributed/utils/__init__.py
imports: import pytest
  import torch
  import torch.distributed
  import ignite.distributed
  from ignite.distributed.utils import sync
  from ignite.engine import Engine, Events
label_desc: Use image node_id 1 for calling a global function with example usage: _sanity_check() without return types