def METHOD_NAME(runner: CliRunner, config_dir: str):
    config_path = get_user_config_path(_config_dir=config_dir)
    os.makedirs(os.path.dirname(config_path))
    with open(config_path, 'w', encoding='utf-8') as config:
        config.write(f'''