class_docstr: Test suite to check that the profiling tools are working properly
  during training and benchmark evaluation
code: def _create_config(force_legacy_profiler: bool):
      cfg = compose_hydra_configuration(
          [
              "config=test/integration_test/quick_simclr",
              "config.DATA.TRAIN.DATA_SOURCES=[synthetic]",
              "config.OPTIMIZER.use_larc=False",
              "config.PROFILING.RUNTIME_PROFILING.USE_PROFILER=true",
              "config.PROFILING.PROFILED_RANKS=[0]",
              f"config.PROFILING.RUNTIME_PROFILING.LEGACY_PROFILER={force_legacy_profiler}",
          ]
      )
      args, config = convert_to_attrdict(cfg)
      return config
  
file_path: vissl/tests/test_profiler.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 TestProfiler obj's underlying member method code with example usage: obj._create_config(force_legacy_profiler) and returns: config