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: Deserializes dict, list, str into an object.
  
  :param data: dict, list or str.
  :param klass: class literal, or string of class name.
  
  :return: object.
docstr_tok: ["Deserializes","dict",",","list",",","str","into","an","object",".",":","param","data",":","dict",",","list","or","str",".",":","param","klass",":","class","literal",",","or","string","of","class","name",".",":","return",":","object","."]
code: def __deserialize(self, data, klass):
      """Deserializes dict, list, str into an object.
  
      :param data: dict, list or str.
      :param klass: class literal, or string of class name.
  
      :return: object.
      """
      if data is None:
          return None
  
      if type(klass) == str:
          if klass.startswith("List["):
              sub_kls = re.match(r"List\[(.*)]", klass).group(1)
              return [
                  self.__deserialize(sub_data, sub_kls)
                  for sub_data in data
              ]
  
          if klass.startswith("Dict["):
              sub_kls = re.match(r"Dict\[([^,]*), (.*)]", klass).group(
                  2
              )
              return {
                  k: self.__deserialize(v, sub_kls)
                  for k, v in data.items()
              }
  
          # convert str to class
          if klass in self.NATIVE_TYPES_MAPPING:
              klass = self.NATIVE_TYPES_MAPPING[klass]
          else:
              klass = getattr(
                  lightly.openapi_generated.swagger_client.models, klass
              )
  
      if klass in self.PRIMITIVE_TYPES:
          return self.__deserialize_primitive(data, klass)
      elif klass == object:
          return self.__deserialize_object(data)
      elif klass == datetime.date:
          return self.__deserialize_date(data)
      elif klass == datetime.datetime:
          return self.__deserialize_datetime(data)
      else:
          return self.__deserialize_model(data, klass)
  
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 14 for calling the ApiClient obj's underlying member method code with example usage: obj.__deserialize(data, klass) and returns: None, self, unknown, unknown, self, self, self, self