<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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