def METHOD_NAME(craft):
    quality = quality_map[craft.quality]
    stat = rune_stat_type_map[craft.stat]
    rune_set = rune_set_map.get(craft.rune, 99)
    return {
        'craft_type_id': int('{:d}{:02d}{:02d}'.format(rune_set, stat, quality)),
        'craft_type': craft_type_map[craft.type],
        'craft_item_id': craft.com2us_id if craft.com2us_id else random.randint(1, 999999999),
        'amount': craft.quantity,
    }