code: def md_link(node):
      
      mimetype = node.find("type")
      mdtype = node.find("metadataType")
      content = node.find("content")
      if None in [mimetype, mdtype, content]:
          return None
      else:
          return (mimetype.text, mdtype.text, content.text)
docs: Extract a metadata link tuple from an xml node