def METHOD_NAME(craft):
    craft_type = artifact_type_map[craft.slot]
    element = element_map[craft.element] if craft.element else 0
    archetype = archetype_map[craft.archetype] if craft.archetype else 0
    quality = quality_map[craft.quality]
    effect = artifact_effect_map[craft.effect]
    return {
        'master_id': int(f'1{craft_type:02d}{element:02d}{archetype:02d}{quality:02d}{effect:03d}'),
        'type': craft_type,
        'quantity': craft.quantity,
    }