def get_card_by_kind(db_conn, card_id):

    card = Card.get_latest_accepted(db_conn, card_id)
    return flip_card_into_kind(card)
Given a card data, return a new card model to replace it by kind.
dataset/ETHPy150Open heiskr/sagefy/server/modules/entity.py/get_card_by_kind