code: def get_info(self, key=None, Id=None) -> dict:
          
          if key is not None:
              Id = self[key].Id
          return self.infos.get(Id,{})
docs: Returns information associated with Id or list index