<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def GetSchema(component):
 """convience function for finding the parent XMLSchema instance. """

    parent = component
    while not isinstance(parent, XMLSchema):
        parent = parent._parent()
    return parent