<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_encoded_text(container, xpath):
 """Return text for element at xpath in the container xml if it is there. Parameters container : xml.etree.ElementTree.Element The element to be searched in. xpath : str The path to be looked for. Returns ------- result : str """

    try:
        return "".join(container.find(xpath, ns).itertext())
    except AttributeError:
        return None