def get_by_id(self, obj_id, only_local=False):
        for obj in self.state[self.state_name]:
            if obj['id'] == obj_id or obj.temp_id == str(obj_id):
                return obj

        if not only_local:
            getter = getattr(self.api, 'get_%s' % self.object_type)
            return getter(obj_id)

        return None
Checks in the following order:
dataset/ETHPy150Open Doist/todoist-python/todoist/managers/generic.py/GetByIdMixin.get_by_id--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/Transform.__setattr__