<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def elemgetter(path: str) -> t.Callable[[Element], Element]: """shortcut making an XML element getter"""

    return compose(
        partial(_raise_if_none, exc=LookupError(path)),
        methodcaller('find', path)
    )