code: def task_attempt(self, job_id, task_id, attempt_id):
          
          path = '/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts/{attemptid}'.format(
              jobid=job_id, taskid=task_id, attemptid=attempt_id)
  
          return self.request(path)
docs: A Task Attempt resource contains information about a particular task
          attempt within a job.
  
          :param str job_id: The job id
          :param str task_id: The task id
          :param str attempt_id: The attempt id
          :returns: API response object with JSON data
          :rtype: :py:class:`yarn_api_client.base.Response`