code: def _test_distrib__get_max_length(device):
      ws = idist.get_world_size()
      x = "_test_distrib__get_max_length" * (idist.get_rank() + 2)
  
      from ignite.distributed.utils import _model
  
      res = _model._get_max_length(x, device)
      assert res == len("_test_distrib__get_max_length" * (ws + 1))
  
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 4 for calling a global function with example usage: _test_distrib__get_max_length(device) without return types