code: def disallow_draft3(validator, disallow, instance, schema):
      for disallowed in _utils.ensure_list(disallow):
          if validator.is_valid(instance, {"type": [disallowed]}):
              yield ValidationError(
                  "%r is disallowed for %r" % (disallowed, instance)
              )
  
file_path: catboost/contrib/python/jsonschema/py2/jsonschema/_legacy_validators.py
imports: from jsonschema import _utils
  from jsonschema.compat import iteritems
  from jsonschema.exceptions import ValidationError
label_desc: Use image node_id 2 for calling a global function with example usage: disallow_draft3(validator, disallow, instance, schema) without return types