code: def validate(instance, attrib, new_value):
      """
      Run *attrib*'s validator on *new_value* if it has one.
  
      .. versionadded:: 20.1.0
      """
      if _config._run_validators is False:
          return new_value
  
      v = attrib.validator
      if not v:
          return new_value
  
      v(instance, attrib, new_value)
  
      return new_value
  
imports: from __future__ import absolute_import, division, print_function
  from .None import _config
  from .exceptions import FrozenAttributeError
label_desc: Use image node_id 3 for calling a global function with example usage: validate(instance, attrib, new_value) and returns: new_value, new_value, new_value