code: def list_results(context, id, sort, limit):
      
  
      headers = ['filename', 'name', 'total', 'success', 'failures', 'errors',
                 'skips', 'time']
      result = job.list_results(context, id=id, sort=sort, limit=limit)
      utils.format_output(result, context.format, headers)
docs: list_result(context, id)
  
      List all job results.
  
      >>> dcictl job-results [OPTIONS]
  
      :param string id: ID of the job to consult result for [required]
      :param string sort: Field to apply sort
      :param integer limit: Max number of rows to return