def METHOD_NAME(config_dict, monkeypatch):
    '''Loads the given dictionary into the current config.
    '''
    test_nomad_yaml = os.path.join(config.fs.tmp, 'nomad_test.yaml')
    monkeypatch.setattr('os.environ', dict(NOMAD_CONFIG=test_nomad_yaml))
    with open(test_nomad_yaml, 'w') as file:
        yaml.dump(config_dict, file)
    config.METHOD_NAME()
    os.remove(test_nomad_yaml)