class_docstr: Mixin that makes an ApiClient object picklable.
code: def __getstate__(self) -> Dict[str, Any]:
      state = self.__dict__.copy()
      # Set _pool to None as ThreadPool is not picklable. It will be automatically
      # recreated once the pool is accessed after unpickling.
      state["_pool"] = None
      # Urllib3 response is not picklable. We can safely remove this as it only
      # serves as a cache.
      if "last_response" in state:
          del state["last_response"]
      return state
  
file_path: lightly/lightly/api/swagger_api_client.py
imports: from typing import Any, Dict, Tuple, Union
  from lightly.api.swagger_rest_client import LightlySwaggerRESTClientObject
  from lightly.openapi_generated.swagger_client.api_client import ApiClient, Configuration
label_desc: Use image node_id 1 for calling the PatchApiClientMixin obj's underlying member method code with example usage: obj.__getstate__() and returns: state