code: def _destroy_dist_context():
      if dist.get_rank() == 0:
          # To support Python 3.7; Otherwise we could do `.unlink(missing_ok=True)`
          try:
              Path("/tmp/free_port").unlink()
          except FileNotFoundError:
              pass
  
      dist.barrier()
  
      dist.destroy_process_group()
  
      from ignite.distributed.utils import _SerialModel, _set_model
  
      # We need to set synced model to initial state
      _set_model(_SerialModel())
  
imports: import functools
  import os
  import shutil
  import sys
  import tempfile
  import time
  from pathlib import Path
  import pytest
  import torch
  import torch.distributed
  import ignite.distributed
label_desc: Use image node_id 9 for calling a global function with example usage: _destroy_dist_context() without return types