'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.'

@utils.minimum_version('1.24')
@utils.check_resource('task')
def inspect_task(self, task):

    url = self._url('/tasks/{0}', task)
    return self._result(self._get(url), True)
