<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _xmlTextReaderErrorFunc(xxx_todo_changeme,msg,severity,locator):
 """Intermediate callback to wrap the locator"""

    (f,arg) = xxx_todo_changeme
    return f(arg,msg,severity,xmlTextReaderLocator(locator))