parameters: (
          self,
          side: str,
          agreed_parameters: Dict[str, Any],
          compression_options: Optional[Dict[str, Any]] = None,
      )
return_statement: return options
docstring: Converts a websocket agreed_parameters set to keyword arguments
          for our compressor objects.
docstring_summary: Converts a websocket agreed_parameters set to keyword arguments
          for our compressor objects.
docstring_tokens: Converts a websocket agreed_parameters set to keyword arguments for our compressor objects .
function: def _get_compressor_options(
          self,
          side: str,
          agreed_parameters: Dict[str, Any],
          compression_options: Optional[Dict[str, Any]] = None,
      ) -> Dict[str, Any]:
          """Converts a websocket agreed_parameters set to keyword arguments
          for our compressor objects.
          """
          options = dict(
              persistent=(side + "_no_context_takeover") not in agreed_parameters
          )  # type: Dict[str, Any]
          wbits_header = agreed_parameters.get(side + "_max_window_bits", None)
          if wbits_header is None:
              options["max_wbits"] = zlib.MAX_WBITS
          else:
              options["max_wbits"] = int(wbits_header)
          options["compression_options"] = compression_options
          return options
function_tokens: def _get_compressor_options ( self , side : str , agreed_parameters : Dict [ str , Any ] , compression_options : Optional [ Dict [ str , Any ] ] = None , ) -> Dict [ str , Any ] : options = dict ( persistent = ( side + "_no_context_takeover" ) not in agreed_parameters ) # type: Dict[str, Any] wbits_header = agreed_parameters . get ( side + "_max_window_bits" , None ) if wbits_header is None : options [ "max_wbits" ] = zlib . MAX_WBITS else : options [ "max_wbits" ] = int ( wbits_header ) options [ "compression_options" ] = compression_options return options