code: def _set_data(self, action):
          
          if 'query' in action:
              self._set_query_data(action)
          elif action == 'imageinfo':
              self._set_imageinfo_data()
          elif action == 'parse':
              self._set_parse_data()
          elif action == 'random':
              self._set_random_data()
          elif action == 'labels':
              self._set_labels()
          elif action == 'wikidata':
              self._set_wikidata()
              self.get_labels()
          elif action == 'restbase':
              self._set_restbase_data()
  
          self._update_imageinfo()
          self._update_params()
docs: marshals response data into page data