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: __setstate__ method for pickling.
docstr_tok: ["__setstate__","method","for","pickling","."]
code: def __setstate__(self, state: Dict[str, Any]) -> None:
      """__setstate__ method for pickling."""
      self.__dict__.update(state)
      # Calling init to recreate the pool_manager attribute.
      self.__init__(
          configuration=state["configuration"],
          timeout=state["timeout"],
          pools_size=state["pools_size"],
          maxsize=state["maxsize"],
      )
  
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 4 for calling the PatchRESTClientObjectMixin obj's underlying member method code with example usage: obj.__setstate__(state) without return types