code: def get_entry(self, id_, scope=None):
          
          if id_[-1] in DEPRECATED_SUFFIXES:
              id_ = id_[:-1]  # Remove it
  
          if scope is not None:
              assert len(self.table) > scope
              return self[scope][id_]
  
          for sc in self:
              if sc[id_] is not None:
                  return sc[id_]
  
          return None
docs: Returns the ID entry stored in self.table, starting
          by the first one. Returns None if not found.
          If scope is not None, only the given scope is searched.