@staticmethod
    def _extract_id(obj):
        """ Return obj.id, or obj if the object doesn't have an ID """
        try:
            return obj.id
        except __HOLE__:
            return obj
dataset/ETHPy150Open photo/openphoto-python/trovebox/api/api_base.py/ApiBase._extract_id