<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def textgetter(path: str, *, default: T=NO_DEFAULT, strip: bool=False) -> t.Callable[[Element], t.Union[str, T]]: """shortcut for making an XML element text getter"""

    find = compose(
        str.strip if strip else identity,
        partial(_raise_if_none, exc=LookupError(path)),
        methodcaller('findtext', path)
    )
    return (find if default is NO_DEFAULT else lookup_defaults(find, default))