code: def kernel_output(self, user_name, kernel_slug, **kwargs):  # noqa: E501
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.kernel_output_with_http_info(user_name, kernel_slug, **kwargs)  # noqa: E501
          else:
              (data) = self.kernel_output_with_http_info(user_name, kernel_slug, **kwargs)  # noqa: E501
              return data
docs: Download the latest output from a kernel  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.kernel_output(user_name, kernel_slug, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str user_name: Kernel owner (required)
          :param str kernel_slug: Kernel name (required)
          :return: Result
                   If the method is called asynchronously,
                   returns the request thread.