def METHOD_NAME(target_class):
    got = target_class.from_string("string-project.string_dataset.string_routine")
    assert got.project == "string-project"
    assert got.dataset_id == "string_dataset"
    assert got.routine_id == "string_routine"
    assert got.path == (
        "/projects/string-project/datasets/string_dataset/routines/string_routine"
    )