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.
docstr: __getstate__ method for pickling.
docstr_tok: ["__getstate__","method","for","pickling","."]
code: def __getstate__(self) -> Dict[str, Any]:
      """__getstate__ method for pickling."""
      state = self.__dict__.copy()
      # Delete pool_manager as it cannot be pickled. Note that it is not possible to
      # unpickle and use a LightlySwaggerRESTClientObject without either instantiating
      # the pool_manager manually again or calling the init method on the rest client.
      del state["pool_manager"]
      return state
  
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 3 for calling the PatchRESTClientObjectMixin obj's underlying member method code with example usage: obj.__getstate__() and returns: state