class_docstr: Generic API client for OpenAPI client library builds.
  
  OpenAPI 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 OpenAPI
  templates.
  
  :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
  :param pool_threads: The number of threads to use for async requests
      to the API. More threads means more concurrent API requests.
class_docstr_tok: ["Generic","API","client","for","OpenAPI","client","library","builds",".","OpenAPI","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","OpenAPI","templates",".",":","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",":","param","pool_threads",":","The","number","of","threads","to","use","for","async","requests","to","the","API",".","More","threads","means","more","concurrent","API","requests","."]
docstr: Makes the HTTP request (synchronous) and returns deserialized data.
  
  To make an async_req request, set the async_req parameter.
  
  :param resource_path: Path to method endpoint.
  :param method: Method to call.
  :param path_params: Path parameters in the url.
  :param query_params: Query parameters in the url.
  :param header_params: Header parameters to be
      placed in the request header.
  :param body: Request body.
  :param post_params dict: Request post form parameters,
      for `application/x-www-form-urlencoded`, `multipart/form-data`.
  :param auth_settings list: Auth Settings names for the request.
  :param response: Response data type.
  :param files dict: key -> filename, value -> filepath,
      for `multipart/form-data`.
  :param async_req bool: execute request asynchronously
  :param _return_http_data_only: response data instead of ApiResponse
                                 object with status code, headers, etc
  :param _preload_content: if False, the ApiResponse.data will
                           be set to none and raw_data will store the
                           HTTP response body without reading/decoding.
                           Default is True.
  :param collection_formats: dict of collection formats for path, query,
      header, and post parameters.
  :param _request_timeout: timeout setting for this request. If one
                           number provided, it will be total request
                           timeout. It can also be a pair (tuple) of
                           (connection, read) timeouts.
  :param _request_auth: set to override the auth_settings for an a single
                        request; this effectively ignores the authentication
                        in the spec for a single request.
  :type _request_token: dict, optional
  :return:
      If async_req parameter is True,
      the request will be called asynchronously.
      The method will return the request thread.
      If parameter async_req is False or missing,
      then the method will return the response directly.
docstr_tok: ["Makes","the","HTTP","request","(","synchronous",")","and","returns","deserialized","data",".","To","make","an","async_req","request",",","set","the","async_req","parameter",".",":","param","resource_path",":","Path","to","method","endpoint",".",":","param","method",":","Method","to","call",".",":","param","path_params",":","Path","parameters","in","the","url",".",":","param","query_params",":","Query","parameters","in","the","url",".",":","param","header_params",":","Header","parameters","to","be","placed","in","the","request","header",".",":","param","body",":","Request","body",".",":","param","post_params","dict",":","Request","post","form","parameters",",","for","`","application\/x-www-form-urlencoded","`",",","`","multipart\/form-data","`",".",":","param","auth_settings","list",":","Auth","Settings","names","for","the","request",".",":","param","response",":","Response","data","type",".",":","param","files","dict",":","key","-",">","filename",",","value","-",">","filepath",",","for","`","multipart\/form-data","`",".",":","param","async_req","bool",":","execute","request","asynchronously",":","param","_return_http_data_only",":","response","data","instead","of","ApiResponse","object","with","status","code",",","headers",",","etc",":","param","_preload_content",":","if","False",",","the","ApiResponse.data","will","be","set","to","none","and","raw_data","will","store","the","HTTP","response","body","without","reading\/decoding",".","Default","is","True",".",":","param","collection_formats",":","dict","of","collection","formats","for","path",",","query",",","header",",","and","post","parameters",".",":","param","_request_timeout",":","timeout","setting","for","this","request",".","If","one","number","provided",",","it","will","be","total","request","timeout",".","It","can","also","be","a","pair","(","tuple",")","of","(","connection",",","read",")","timeouts",".",":","param","_request_auth",":","set","to","override","the","auth_settings","for","an","a","single","request",";","this","effectively","ignores","the","authentication","in","the","spec","for","a","single","request",".",":","type","_request_token",":","dict",",","optional",":","return",":","If","async_req","parameter","is","True",",","the","request","will","be","called","asynchronously",".","The","method","will","return","the","request","thread",".","If","parameter","async_req","is","False","or","missing",",","then","the","method","will","return","the","response","directly","."]
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_types_map=None,
      auth_settings=None,
      async_req=None,
      _return_http_data_only=None,
      collection_formats=None,
      _preload_content=True,
      _request_timeout=None,
      _host=None,
      _request_auth=None,
  ):
      """Makes the HTTP request (synchronous) and returns deserialized data.
  
      To make an async_req request, set the async_req parameter.
  
      :param resource_path: Path to method endpoint.
      :param method: Method to call.
      :param path_params: Path parameters in the url.
      :param query_params: Query parameters in the url.
      :param header_params: Header parameters to be
          placed in the request header.
      :param body: Request body.
      :param post_params dict: Request post form parameters,
          for `application/x-www-form-urlencoded`, `multipart/form-data`.
      :param auth_settings list: Auth Settings names for the request.
      :param response: Response data type.
      :param files dict: key -> filename, value -> filepath,
          for `multipart/form-data`.
      :param async_req bool: execute request asynchronously
      :param _return_http_data_only: response data instead of ApiResponse
                                     object with status code, headers, etc
      :param _preload_content: if False, the ApiResponse.data will
                               be set to none and raw_data will store the
                               HTTP response body without reading/decoding.
                               Default is True.
      :param collection_formats: dict of collection formats for path, query,
          header, and post parameters.
      :param _request_timeout: timeout setting for this request. If one
                               number provided, it will be total request
                               timeout. It can also be a pair (tuple) of
                               (connection, read) timeouts.
      :param _request_auth: set to override the auth_settings for an a single
                            request; this effectively ignores the authentication
                            in the spec for a single request.
      :type _request_token: dict, optional
      :return:
          If async_req parameter is True,
          the request will be called asynchronously.
          The method will return the request thread.
          If parameter async_req is False or missing,
          then the method will return the response directly.
      """
      if not async_req:
          return self.__call_api(
              resource_path,
              method,
              path_params,
              query_params,
              header_params,
              body,
              post_params,
              files,
              response_types_map,
              auth_settings,
              _return_http_data_only,
              collection_formats,
              _preload_content,
              _request_timeout,
              _host,
              _request_auth,
          )
  
      return self.pool.apply_async(
          self.__call_api,
          (
              resource_path,
              method,
              path_params,
              query_params,
              header_params,
              body,
              post_params,
              files,
              response_types_map,
              auth_settings,
              _return_http_data_only,
              collection_formats,
              _preload_content,
              _request_timeout,
              _host,
              _request_auth,
          ),
      )
  
imports: import atexit
  import datetime
  from dateutil.parser import parse
  import json
  import mimetypes
  from multiprocessing.pool import ThreadPool
  import os
  import re
  import tempfile
  from urllib.parse import quote
  from lightly.openapi_generated.swagger_client.configuration import Configuration
  from lightly.openapi_generated.swagger_client.api_response import ApiResponse
  import lightly.openapi_generated.swagger_client.models
  from lightly.openapi_generated.swagger_client import rest
  from lightly.openapi_generated.swagger_client.exceptions import ApiValueError, ApiException
label_desc: Use image node_id 15 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_types_map, auth_settings, async_req, _return_http_data_only, collection_formats, _preload_content, _request_timeout, _host, _request_auth) and returns: self, self