

def slot_from_item(item):
    if (2 != getattr(item, 'obj_type', None)):
        return None
    meta = getattr(item, 'metadata', None)
    if (meta and (10 in item)):
        (typ, slot_data) = meta[10]
        if (typ == 5):
            return Slot(None, (- 1), **slot_data)
    return None

dataset/ETHPy150Open Gjum/Bat/bat/bat.py slot_from_item/VarMisuse@48/58 `meta`->`item`