docstr: Following Hydra 1.1 update, the composition order is modified:
  https://hydra.cc/docs/upgrades/1.0_to_1.1/default_composition_order/
  
  This test verifies that the composition order is working on
  the hydra version installed by the user.
docstr_tok: ["Following","Hydra","1.1","update",",","the","composition","order","is","modified",":","https",":","\/\/hydra.cc\/docs\/upgrades\/1.0_to_1.1\/default_composition_order\/","This","test","verifies","that","the","composition","order","is","working","on","the","hydra","version","installed","by","the","user","."]
code: def test_composition_order(self) -> None:
      """
      Following Hydra 1.1 update, the composition order is modified:
      https://hydra.cc/docs/upgrades/1.0_to_1.1/default_composition_order/
  
      This test verifies that the composition order is working on
      the hydra version installed by the user.
      """
  
      # Create a pre-training configuration for SwAV and
      # ensure that the composition was done correctly
      config = self._create_config(
          [
              "config=test/integration_test/quick_swav",
              "config.DATA.TRAIN.DATA_SOURCES=[synthetic]",
              "config.DATA.TRAIN.DATA_LIMIT=40",
              "config.DATA.TRAIN.BATCHSIZE_PER_REPLICA=4",
              "config.DISTRIBUTED.NUM_PROC_PER_NODE=2",
          ]
      )
      self.assertEqual("swav_loss", config.LOSS.name)
      self.assertEqual(2, config.DISTRIBUTED.NUM_PROC_PER_NODE)
  
file_path: vissl/tests/test_utils_hydra_config.py
imports: import unittest
  from typing import List
  from vissl.utils.hydra_config import compose_hydra_configuration, convert_to_attrdict, SweepHydraOverrides
label_desc: Use image node_id 2 for calling the TestUtilsHydraConfig obj's underlying member method code with example usage: obj.test_composition_order() without return types