def cleanup_namespaces(element):
    """ Remove unused namespaces from an element """
    if etree.__name__ is not 'lxml.etree':
        etree.cleanup_namespaces(element)
        return element
    else:
        return etree.fromstring(etree.tostring(element))
dataset/ETHPy150Open geopython/OWSLib/owslib/util.py/cleanup_namespaces/operator `==` -> `is not`