def METHOD_NAME(target_project, output_dir, parallelism, use_cloud_function):
    """
    Generate schema yaml files for views in output_dir/target_project.
    We dry-run to get the schema data and where possible we enrich the
    view schemas with underlying table descriptions.
    """
    project_path = Path(f"{output_dir}/{target_project}")
    dataset_paths = [
        dataset_path
        for dataset_path in project_path.iterdir()
        if dataset_path.is_dir()
        and all(
            substring not in str(dataset_path)
            for substring in NON_USER_FACING_DATASET_SUBSTRINGS
        )
    ]
    for dataset_path in dataset_paths:
        view_directories = [path for path in dataset_path.iterdir() if path.is_dir()]
        with ProcessingPool(parallelism) as pool:
            pool.map(
                partial(
                    _generate_view_schema,
                    Path(output_dir),
                ),
                view_directories,
            )