docs: def inspect_task(self, task):
          """
          Retrieve information about a task.
  
          Args:
              task (str): Task ID
  
          Returns:
              (dict): Information about the task.
  
          Raises:
              :py:class:`docker.errors.APIError`
                  If the server returns an error.
          """
          url = self._url('/tasks/{0}', task)
          return self._result(self._get(url), True)