code: def _query(self, action, qobj):
          
          title = self.params.get('title')
          pageid = self.params.get('pageid')
  
          if action == 'random':
              return qobj.random(namespace=14)
          elif action == 'category':
              return qobj.category(title, pageid, self._continue_params())
docs: Form query to enumerate category