code: def test_checkpoint_consolidation(self) -> None:
      with in_temporary_directory():
          for with_heads in [True, False]:
              with with_temp_files(count=1) as sync_file:
                  world_size = 2
                  mp.spawn(
                      self._worker,
                      (sync_file, world_size, with_heads),
                      nprocs=world_size,
                  )
  
file_path: vissl/tests/test_state_checkpoint_conversion.py
imports: import os
  import unittest
  import torch
  import torch.distributed
  import torch.multiprocessing
  import torch.nn
  import torch.optim
  from vissl.models import build_model
  from vissl.utils.checkpoint import CheckpointFormatConverter, CheckpointLoader, CheckpointWriter
  from vissl.utils.fsdp_utils import fsdp_wrapper
  from vissl.utils.hydra_config import compose_hydra_configuration, convert_to_attrdict
  from vissl.utils.test_utils import gpu_test, in_temporary_directory, init_distributed_on_file, with_temp_files
label_desc: Use image node_id 3 for calling the TestCheckpointConversion obj's underlying member method code with example usage: obj.test_checkpoint_consolidation() without return types