code: def retrieve(self, cursor):
          
          assert isinstance(cursor, dict), "expected cursor type 'dict'"
  
          # look for record in query
          query = self.get_query()
          assert isinstance(query, peewee.Query)
  
          query
          return query.get(**cursor)
docs: Retrieve items from query