class_docstr: Mixin that adds patches to a RESTClientObject.
  
  * Adds default timeout to all requests
  * Encodes list query parameters properly
  * Makes the client picklable
  
  Should only used in combination with RESTClientObject and must come before the
  RESTClientObject in the inheritance order. So this is ok:
  
      >>> class MyRESTClientObject(PatchRESTClientObjectMixin, RESTClientObject): pass
  
  while this doesn't work:
  
      >>> class MyRESTClientObject(RESTClientObject, PatchRESTClientObjectMixin): pass
  
  A wrong inheritance order will result in the super() calls no calling the correct
  parent classes.
code: def request(
      self,
      method,
      url,
      query_params=None,
      headers=None,
      body=None,
      post_params=None,
      _preload_content=True,
      _request_timeout=None,
  ):
      # Set default timeout. This is necessary because the openapi client does not
      # respect timeouts configured by urllib3. Instead it expects a timeout to be
      # passed with every request. See code here:
      # https://github.com/lightly-ai/lightly/blob/ffbd32fe82f76b37c8ac497640355314474bfc3b/lightly/openapi_generated/swagger_client/rest.py#L141-L148
      if _request_timeout is None:
          _request_timeout = self.timeout
  
      # Call RESTClientObject.request
      return super().request(
          method=method,
          url=url,
          query_params=query_params,
          headers=headers,
          body=body,
          post_params=post_params,
          _preload_content=_preload_content,
          _request_timeout=_request_timeout,
      )
  
file_path: lightly/lightly/api/swagger_rest_client.py
imports: from typing import Any, Dict, Tuple, Union
  from lightly.openapi_generated.swagger_client.api_client import Configuration
  from lightly.openapi_generated.swagger_client.rest import RESTClientObject
label_desc: Use image node_id 2 for calling the PatchRESTClientObjectMixin obj's underlying member method code with example usage: obj.request(method, url, query_params, headers, body, post_params, _preload_content, _request_timeout) and returns: super