code: def test_resource_manager_arg_mappings(arg_mappings):
      rm = ResourceManager(
          args=None,
          hosts="worker-0, worker-1",
          num_gpus_per_node=4,
          results_dir=None,
          exps_dir=None,
          arg_mappings=arg_mappings,
      )
  
      if arg_mappings is not None:
          for k, v in arg_mappings.items():
              assert k.strip() in rm.arg_mappings.keys()
              assert (
                  arg_mappings[k.strip()].strip()
                  == rm.arg_mappings[k.strip()]
              )
  
file_path: DeepSpeed/tests/unit/autotuning/test_autotuning.py
imports: import os
  import pytest
  from unit.simple_model import create_config_from_dict
  from deepspeed.launcher import runner
  from deepspeed.autotuning.autotuner import Autotuner
  from deepspeed.autotuning.scheduler import ResourceManager
label_desc: Use image node_id 2 for calling a global function with example usage: test_resource_manager_arg_mappings(arg_mappings) without return types