code: def has_obstory_metadata(self, status_id):
          
          self.con.execute('SELECT 1 FROM archive_metadata WHERE publicId=%s;', (status_id,))
          return len(self.con.fetchall()) > 0
docs: Check for the presence of the given metadata item
  
          :param string status_id:
              The metadata item ID
          :return:
              True if we have a metadata item with this ID, False otherwise