def METHOD_NAME():
    with mock_ml_package_versions_yml(MOCK_YAML_SOURCE, MOCK_YAML_SOURCE) as path_args:
        matrix = generate_matrix([*path_args, "--changed-files", "mlflow/foo/__init__.py"])
        flavors = {x.flavor for x in matrix}
        versions = {str(x.version) for x in matrix}
        assert set(flavors) == {"foo"}
        assert set(versions) == {"1.0.0", "1.1.1", "1.2.0", "dev"}