docstr: This function is used to reset global environment variables.
  
  Example
  -------
  >>> set_config('seed', 123)
  
  This will set the global seed to '123'.
docstr_tok: ["This","function","is","used","to","reset","global","environment","variables",".","Example","--","--","--","-",">",">",">","set_config","(","'seed","'",",","123",")","This","will","set","the","global","seed","to","'123","'","."]
code: def set_config(
      self,
      variable: Optional[str] = None,
      value: Optional[Any] = None,
      **kwargs,
  ) -> None:
      """
      This function is used to reset global environment variables.
  
      Example
      -------
      >>> set_config('seed', 123)
  
      This will set the global seed to '123'.
  
      """
      function_params_str = ", ".join(
          [
              f"{k}={v}"
              for k, v in locals().items()
              if not k == "globals_d"
          ]
      )
  
      self.logger.info("Initializing set_config()")
      self.logger.info(f"set_config({function_params_str})")
  
      if kwargs and variable:
          raise ValueError(
              "variable parameter cannot be used together with keyword arguments."
          )
      else:
          if kwargs:
              variables = kwargs
          elif variable:
              variables = {variable: value}
          else:
              variables = {}
  
      for k, v in variables.items():
          if k.startswith("_"):
              raise ValueError(
                  f"Variable {k} is read only ('_' prefix)."
              )
  
          writeable_keys = [
              x
              for x in self._variable_keys.difference(
                  self._property_keys
              )
              if not x.startswith("_")
          ]
          if k not in writeable_keys:
              raise ValueError(
                  f"Variable {k} not found or is not writeable. Possible writeable variables are: {writeable_keys}"
              )
  
          setattr(self, k, v)
          self.logger.info(f"Global variable: {k} updated to {v}")
      self.logger.info(
          "set_config() successfully completed......................................"
      )
      return
  
imports: import inspect
  import os
  import warnings
  from collections import defaultdict
  from typing import Any, BinaryIO, Callable, Dict, Optional, Union
  import cloudpickle
  import pandas
  import pycaret.internal.patches.sklearn
  import pycaret.internal.patches.yellowbrick
  import pycaret.internal.persistence
  from pycaret.internal.logging import get_logger
  from pycaret.utils.constants import DATAFRAME_LIKE
  from pycaret.utils.generic import LazyExperimentMapping
label_desc: Use image node_id 18 for calling the _PyCaretExperiment obj's underlying member method code with example usage: obj.set_config(variable, value) without return types