docs: def check_comment_belongs_to_record(comid, recid):
      """
      Return True if the comment is indeed part of given record (even if comment or/and record have
      been "deleted"). Else return False.
  
      :param comid: the id of the comment to check membership
      :param recid: the recid of the record we want to check if comment belongs to
      """
      query = """SELECT id_bibrec from "cmtRECORDCOMMENT" WHERE id=%s"""
      params = (comid,)
      res = run_sql(query, params)
      if res and res[0][0] == recid:
          return True
  
      return False