code: def add_optimizer_configvars():
      config.add(
          "optimizer_excluding",
          (
              "When using the default mode, we will remove optimizer with "
              "these tags. Separate tags with ':'."
          ),
          StrParam("", mutable=False),
          in_c_key=False,
      )
  
      config.add(
          "optimizer_including",
          (
              "When using the default mode, we will add optimizer with "
              "these tags. Separate tags with ':'."
          ),
          StrParam("", mutable=False),
          in_c_key=False,
      )
  
      config.add(
          "optimizer_requiring",
          (
              "When using the default mode, we will require optimizer with "
              "these tags. Separate tags with ':'."
          ),
          StrParam("", mutable=False),
          in_c_key=False,
      )
  
      config.add(
          "optdb__position_cutoff",
          "Where to stop earlier during optimization. It represent the"
          " position of the optimizer where to stop.",
          FloatParam(np.inf),
          in_c_key=False,
      )
  
      config.add(
          "optdb__max_use_ratio",
          "A ratio that prevent infinite loop in EquilibriumGraphRewriter.",
          FloatParam(8),
          in_c_key=False,
      )
      config.add(
          "cycle_detection",
          "If cycle_detection is set to regular, most inplaces are allowed,"
          "but it is slower. If cycle_detection is set to faster, less inplaces"
          "are allowed, but it makes the compilation faster."
          "The interaction of which one give the lower peak memory usage is"
          "complicated and not predictable, so if you are close to the peak"
          "memory usage, triyng both could give you a small gain.",
          EnumStr("regular", ["fast"]),
          in_c_key=False,
      )
  
      config.add(
          "check_stack_trace",
          "A flag for checking the stack trace during the optimization process. "
          "default (off): does not check the stack trace of any optimization "
          "log: inserts a dummy stack trace that identifies the optimization"
          "that inserted the variable that had an empty stack trace."
          "warn: prints a warning if a stack trace is missing and also a dummy"
          "stack trace is inserted that indicates which optimization inserted"
          "the variable that had an empty stack trace."
          "raise: raises an exception if a stack trace is missing",
          EnumStr("off", ["log", "warn", "raise"]),
          in_c_key=False,
      )
  
imports: import errno
  import logging
  import os
  import platform
  import re
  import socket
  import sys
  import textwrap
  import numpy
  from setuptools._distutils.spawn import find_executable
  import pytensor
  from pytensor.configparser import BoolParam, ConfigParam, DeviceParam, EnumStr, FloatParam, IntParam, StrParam, _create_default_config
  from pytensor.utils import LOCAL_BITWIDTH, PYTHON_INT_BITWIDTH, call_subprocess_Popen, maybe_add_to_os_environ_pathlist, output_subprocess_Popen
label_desc: Use image node_id 29 for calling a global function with example usage: add_optimizer_configvars() without return types