code: def _Configuration__setstate__(
      self: Type, state: Dict[str, Any]
  ) -> None:
      self.__dict__.update(state)
      # Recreate logger objects.
      self.logger["package_logger"] = logging.getLogger(
          "lightly.openapi_generated.swagger_client"
      )
      self.logger["urllib3_logger"] = logging.getLogger("urllib3")
  
      # Set logger_format and logger_file explicitly because they have setter decoraters
      # defined on the Configuration class. These decorates have side effects and create
      # self.__logger_format, self.logger_formatter, self.__logger_file,
      # self.logger_file_handler, and self.logger_stream_handler under the hood.
      #
      # Note that the setter decorates are not called by the self.__dict__.update(state)
      # at the beginning of the function.
      #
      # The attributes are set to the class mangled values stored in the state dict.
      self.logger_format = state[
          "_Configuration__logger_format"
      ]  # set to self.__logger_format
      self.logger_file = state[
          "_Configuration__logger_file"
      ]  # set to self.__logger_file
  
      # Set debug explicitly because it has a setter decorator with side effects.
      self.debug = state["_Configuration__debug"]
  
imports: import logging
  from typing import Any, Dict, Type
label_desc: Use image node_id 3 for calling a global function with example usage: _Configuration__setstate__(state) without return types