def pack_id(self, obj):
    'extract id attribute from obj'
    try:
        return obj.id
    except __HOLE__:
        if obj is None:
            return None
        raise
dataset/ETHPy150Open cjlee112/pygr/pygr/mapping.py/pack_id