def METHOD_NAME(rune):
    exported_rune = {
        'occupied_type': 1,
        'occupied_id': rune.assigned_to.com2us_id if rune.assigned_to else 0,
        'sell_value': rune.value,
        'pri_eff': [rune_stat_type_map[rune.main_stat], rune.main_stat_value],
        'prefix_eff': [rune_stat_type_map[rune.innate_stat], rune.innate_stat_value] if rune.innate_stat else [0, 0],
        'slot_no': rune.slot,
        'rank': 0,
        'sec_eff': [],
        'upgrade_curr': rune.level,
        'class': rune.stars,
        'set_id': rune_set_map[rune.type],
        'upgrade_limit': 15,
        'rune_id': rune.com2us_id if rune.com2us_id else random.randint(1, 999999999),
        'extra': quality_map.get(rune.original_quality, 0),
    }
    if rune.ancient:
        exported_rune['class'] += 10
        exported_rune['extra'] += 10
    for substat, value, enchanted, grind_value in zip(rune.substats, rune.substat_values, rune.substats_enchanted, rune.substats_grind_value):
        exported_rune['sec_eff'].append([
            rune_stat_type_map[substat],
            value,
            1 if enchanted else 0,
            grind_value,
        ])
    return exported_rune