code: def set_disabled(disabled):
      """
      Globally disable or enable running validators.
  
      By default, they are run.
  
      :param disabled: If ``True``, disable running all validators.
      :type disabled: bool
  
      .. warning::
  
          This function is not thread-safe!
  
      .. versionadded:: 21.3.0
      """
      set_run_validators(not disabled)
  
imports: import operator
  import re
  from contextlib import contextmanager
  from re import Pattern
  from ._config import get_run_validators, set_run_validators
  from ._make import _AndValidator, and_, attrib, attrs
  from .converters import default_if_none
  from .exceptions import NotCallableError
label_desc: Use image node_id 1 for calling a global function with example usage: set_disabled(disabled) without return types