code: def is_collapsed(self, id_user):
          
          return CmtCOLLAPSED.query.filter(db.and_(
              CmtCOLLAPSED.id_bibrec == self.id_bibrec,
              CmtCOLLAPSED.id_cmtRECORDCOMMENT == self.id,
              CmtCOLLAPSED.id_user == id_user)).count() > 0
docs: Return true if the comment is collapsed by user.