def get_comment_collection(cmt_id):
    """
    Extract the collection where the comment is written
    """
    query = """SELECT id_bibrec FROM "cmtRECORDCOMMENT" WHERE id=%s"""
    recid = run_sql(query, (cmt_id,))
    record_primary_collection = guess_primary_collection_of_a_record(
        recid[0][0])
    return record_primary_collection
Extract the collection where the comment is written