def METHOD_NAME(param_doc_obj, name: str):
    found_doc = next((x for x in param_doc_obj if x.name == name), None)
    assert found_doc is not None, "Could not find {} in docstring".format(
        name
    )
    return found_doc