def before_feature(context, feature):
    """ create per-feature output directory to collect Patroni and PostgreSQL logs """
    if feature.name == 'watchdog' and os.name == 'nt':
        return feature.skip("Watchdog isn't supported on Windows")
    elif feature.name == 'citus':
        lib = subprocess.check_output(['pg_config', '--pkglibdir']).decode('utf-8').strip()
        if not os.path.exists(os.path.join(lib, 'citus.so')):
            return feature.skip("Citus extension isn't available")
    elif feature.name == 'bootstrap labels' and context.dcs_ctl.name() != 'kubernetes':
        feature.skip("Tested only on Kubernetes")
    context.pctl.create_and_set_output_directory(feature.name)
 create per-feature output directory to collect Patroni and PostgreSQL logs 
features/environment.py