code: def get_task_summary(self, task_name):
          
  
          params = {'instancesummary': '', 'taskname': task_name}
          resp = self._client.get(self.resource(), params=params)
  
          map_reduce = resp.json().get('Instance')
          if map_reduce:
              json_summary = map_reduce.get('JsonSummary')
              if json_summary:
                  summary = Instance.TaskSummary(json.loads(json_summary))
                  summary.summary_text = map_reduce.get('Summary')
                  summary.json_summary = json_summary
  
                  return summary
docs: Get a task's summary, mostly used for MapReduce.
  
          :param task_name: task name
          :return: summary as a dict parsed from JSON
          :rtype: dict