def METHOD_NAME(target_class):
    resource = {
        "projectId": "my-project",
        "datasetId": "my_dataset",
        "routineId": "my_routine",
        "thisFieldIsNotInTheProto": "just ignore me",
    }
    got = target_class.from_api_repr(resource)
    assert got.project == "my-project"
    assert got.dataset_id == "my_dataset"
    assert got.routine_id == "my_routine"
    assert got._properties is resource