def METHOD_NAME(version):
    """Get xpath namespace for specified WPS version.
    Versions 1.0.0 or 2.0.0 are supported.
    """
    def xpath_ns(ele, path):
        """Function, which will return xpath namespace for given
        element and xpath
        """
        if version == "1.0.0":
            from pywps import namespaces100
            nsp = namespaces100
        elif version == "2.0.0":
            from pywps import namespaces200
            nsp = namespaces200
        else:
            raise NotImplementedError(version)
        return ele.xpath(path, namespaces=nsp)
    return xpath_ns