class_docstr: Generic API client for Swagger client library builds.
  
  Swagger generic API client. This client handles the client-
  server communication, and is invariant across implementations. Specifics of
  the methods and models for each application are generated from the Swagger
  templates.
  
  NOTE: This class is auto generated by the swagger code generator program.
  Ref: https://github.com/swagger-api/swagger-codegen
  Do not edit the class manually.
  
  :param configuration: .Configuration object for this client
  :param header_name: a header to pass when making calls to the API.
  :param header_value: a header value to pass when making calls to
      the API.
  :param cookie: a cookie to include in the header when making calls
      to the API
class_docstr_tok: ["Generic","API","client","for","Swagger","client","library","builds",".","Swagger","generic","API","client",".","This","client","handles","the","client-","server","communication",",","and","is","invariant","across","implementations",".","Specifics","of","the","methods","and","models","for","each","application","are","generated","from","the","Swagger","templates",".","NOTE",":","This","class","is","auto","generated","by","the","swagger","code","generator","program",".","Ref",":","https",":","\/\/github.com\/swagger-api\/swagger-codegen","Do","not","edit","the","class","manually",".",":","param","configuration",":",".Configuration","object","for","this","client",":","param","header_name",":","a","header","to","pass","when","making","calls","to","the","API",".",":","param","header_value",":","a","header","value","to","pass","when","making","calls","to","the","API",".",":","param","cookie",":","a","cookie","to","include","in","the","header","when","making","calls","to","the","API"]
code: def __call_api(
      self,
      resource_path,
      method,
      path_params=None,
      query_params=None,
      header_params=None,
      body=None,
      post_params=None,
      files=None,
      response_type=None,
      auth_settings=None,
      _return_http_data_only=None,
      collection_formats=None,
      _preload_content=True,
      _request_timeout=None,
  ):
      config = self.configuration
  
      # header parameters
      header_params = header_params or {}
      header_params.update(self.default_headers)
      if self.cookie:
          header_params["Cookie"] = self.cookie
      if header_params:
          header_params = self.sanitize_for_serialization(header_params)
          header_params = dict(
              self.parameters_to_tuples(
                  header_params, collection_formats
              )
          )
  
      # path parameters
      if path_params:
          path_params = self.sanitize_for_serialization(path_params)
          path_params = self.parameters_to_tuples(
              path_params, collection_formats
          )
          for k, v in path_params:
              # specified safe chars, encode everything
              resource_path = resource_path.replace(
                  "{%s}" % k,
                  quote(str(v), safe=config.safe_chars_for_path_param),
              )
  
      # query parameters
      if query_params:
          query_params = self.sanitize_for_serialization(query_params)
          query_params = self.parameters_to_tuples(
              query_params, collection_formats
          )
  
      # post parameters
      if post_params or files:
          post_params = self.prepare_post_parameters(post_params, files)
          post_params = self.sanitize_for_serialization(post_params)
          post_params = self.parameters_to_tuples(
              post_params, collection_formats
          )
  
      # auth setting
      self.update_params_for_auth(
          header_params, query_params, auth_settings
      )
  
      # body
      if body:
          body = self.sanitize_for_serialization(body)
  
      # request url
      url = self.configuration.host + resource_path
  
      # perform request and return response
      response_data = self.request(
          method,
          url,
          query_params=query_params,
          headers=header_params,
          post_params=post_params,
          body=body,
          _preload_content=_preload_content,
          _request_timeout=_request_timeout,
      )
  
      self.last_response = response_data
  
      return_data = response_data
      if _preload_content:
          # deserialize response data
          if response_type:
              return_data = self.deserialize(
                  response_data, response_type
              )
          else:
              return_data = None
  
      if _return_http_data_only:
          return return_data
      else:
          return (
              return_data,
              response_data.status,
              response_data.getheaders(),
          )
  
imports: from __future__ import absolute_import
  import datetime
  import json
  import mimetypes
  from multiprocessing.pool import ThreadPool
  import os
  import re
  import tempfile
  import six
  from six.moves.urllib.parse import quote
  from kaggle.configuration import Configuration
  import kaggle.models
  from kaggle import rest
label_desc: Use image node_id 5 for calling the ApiClient obj's underlying member method code with example usage: obj.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout) and returns: return_data, return_data,  response_data,  response_data