def METHOD_NAME(self):
    if os.getenv(MAGE_DATA_DIR_ENV_VAR):
        del os.environ[MAGE_DATA_DIR_ENV_VAR]
    config_dict = dict(
        variables_dir='variables_dir_from_config_dict',
    )
    test1 = RepoConfig(repo_path=self.repo_path, config_dict=config_dict)
    self.assertEqual(
        test1.variables_dir,
        os.path.join(self.repo_path, 'variables_dir_from_config_dict'),
    )
    shutil.rmtree(test1.variables_dir)
    metadata_dict = dict(
        variables_dir='variables_dir_from_metadata',
    )
    test_repo_path = os.path.join(self.repo_path, 'repo_manager_test')
    os.makedirs(test_repo_path, exist_ok=True)
    with open(os.path.join(test_repo_path, 'metadata.yaml'), 'w') as f:
        yaml.dump(metadata_dict, f)
    test2 = RepoConfig(repo_path=test_repo_path)
    self.assertEqual(
        test2.variables_dir,
        os.path.join(test_repo_path, 'variables_dir_from_metadata'),
    )
    shutil.rmtree(test2.variables_dir)
    os.environ[MAGE_DATA_DIR_ENV_VAR] = 'variables_dir_from_env_var'
    test4 = RepoConfig(repo_path=self.repo_path)
    self.assertEqual(
        test4.variables_dir,
        os.path.join(self.repo_path, 'variables_dir_from_env_var'),
    )
    del os.environ[MAGE_DATA_DIR_ENV_VAR]
    shutil.rmtree(test4.variables_dir)