code: def _create_dino_pretraining_config(
      with_mixed_precision: bool,
      with_mlp_checkpoints: bool = False,
      with_block_checkpoints: bool = False,
      gpu_count: int = 2,
      num_epochs: int = 4,
  ):
      cfg = compose_hydra_configuration(
          [
              "config=test/integration_test/quick_dino",
              "config.SEED_VALUE=0",
              "config.DATA.TRAIN.DATA_SOURCES=[synthetic]",
              "config.DATA.TRAIN.BATCHSIZE_PER_REPLICA=4",
              "config.DATA.TRAIN.RANDOM_SYNTHETIC_IMAGES=True",
              "config.DATA.TRAIN.DATA_LIMIT=32",
              "config.DATA.TRAIN.USE_DEBUGGING_SAMPLER=True",
              "config.LOG_FREQUENCY=1",
              "config.REPRODUCIBILITY.CUDDN_DETERMINISTIC=True",
              f"config.OPTIMIZER.num_epochs={num_epochs}",
              f"config.DISTRIBUTED.NUM_PROC_PER_NODE={gpu_count}",
              # Activation checkpointing (memory optimisation)
              f"config.MODEL.TRUNK.VISION_TRANSFORMERS.CHECKPOINT_MLP={with_mlp_checkpoints}",
              f"config.MODEL.TRUNK.VISION_TRANSFORMERS.CHECKPOINT_BLOCK={with_block_checkpoints}",
              # Options to override to get FSDP
              "config.MODEL.AMP_PARAMS.AMP_TYPE=pytorch",
              f"config.MODEL.AMP_PARAMS.USE_AMP={with_mixed_precision}",
              "config.OPTIMIZER.construct_single_param_group_only=False",
              "config.MODEL.FSDP_CONFIG.AUTO_WRAP_THRESHOLD=0",
          ]
      )
      args, config = convert_to_attrdict(cfg)
      return config
  
file_path: vissl/tests/test_dino_deit.py
imports: import os
  import unittest
  from vissl.utils.hydra_config import compose_hydra_configuration, convert_to_attrdict
  from vissl.utils.test_utils import gpu_test, in_temporary_directory, run_integration_test
label_desc: Use image node_id 1 for calling the TestDINO_DEIT obj's underlying member method code with example usage: obj._create_dino_pretraining_config(with_mixed_precision, with_mlp_checkpoints, with_block_checkpoints, gpu_count, num_epochs) and returns: config