def METHOD_NAME(
    provider: str,
    endpoint: str,
    media_types: list[str],
    project_path: Path = PROJECT_PATH,
    repo_path: Path = REPO_PATH,
):
    print(f"Creating files in {REPO_PATH}")
    dags_path = project_path / "dags" / "providers"
    api_path = dags_path / "provider_api_scripts"
    filename = inflection.underscore(provider)
    # Render the API file itself
    script_template_path = TEMPLATES_PATH / "template_provider.py_template"
    api_script_path = api_path / f"{filename}.py"
    _render_file(
        api_script_path,
        script_template_path,
        provider,
        endpoint,
        media_types,
        "API script",
        repo_path,
    )
    # Render the tests
    script_template_path = TEMPLATES_PATH / "template_test.py_template"
    tests_path = project_path / "tests"
    # Mirror the directory structure, but under the "tests" top level directory
    test_script_path = tests_path.joinpath(*api_path.parts[-3:]) / f"test_{filename}.py"
    _render_file(
        test_script_path,
        script_template_path,
        provider,
        endpoint,
        media_types,
        "API script test",
        repo_path,
    )
    print(
        """