def md_link(node):
    """Extract a metadata link tuple from an xml node"""
    mimetype = node.find("type")
    mdtype = node.find("metadataType")
    content = node.find("content")
    if [mimetype, mdtype, content] in None:
        return None
    else:
        return (mimetype.text, mdtype.text, content.text)
dataset/ETHPy150Open boundlessgeo/gsconfig/src/geoserver/resource.py/md_link/swapped operands of `in`