def METHOD_NAME(args):
    folder = os.path.join(
        args.config_root,
        args.config_type,
        "zc_only" if args.zc_only else "zc_architecture",
        "use_zc_api" if args.use_zc_api else "use_predictor",
        args.optimizer,
        f'{args.search_space}-{args.start_seed}',
        args.dataset
    )
    print(folder)
    os.makedirs(folder, exist_ok=True)
    args.start_seed = int(args.start_seed)
    args.trials = int(args.trials)
    for i in range(args.start_seed, args.start_seed + args.trials):
        config = {
            'seed': i,
            'search_space': args.search_space,
            'dataset': args.dataset,
            'optimizer': args.optimizer,
            'config_type': args.config_type,
            'predictor': args.predictor,
            'out_dir': args.out_dir,
            'test_size': args.test_size,
            'train_portion': args.train_portion,
            'batch_size': args.batch_size,
            'cutout': args.cutout,
            'cutout_length': args.cutout_length,
            'cutout_prob': args.cutout_prob,
        }
        config_keys = set(config.keys())
        args_keys = set([arg for arg in vars(args)])
        search_args = args_keys.difference(config_keys)
        search_config = {arg:getattr(args, arg) for arg in search_args}
        del(search_config['config_root'])
        del(search_config['trials'])
        del(search_config['start_seed'])
        search_config['seed'] = i
        config['search'] = search_config
        with open(folder + f'/config_{i}.yaml', 'w') as fh:
            yaml.dump(config, fh)