code: def run(arguments, stdout=sys.stdout, stderr=sys.stderr):
      error_format = arguments["error_format"]
      validator = arguments["validator"](schema=arguments["schema"])
  
      validator.check_schema(arguments["schema"])
  
      errored = False
      for instance in arguments["instances"] or ():
          for error in validator.iter_errors(instance):
              stderr.write(error_format.format(error=error))
              errored = True
      return errored
  
file_path: catboost/contrib/python/jsonschema/py3/jsonschema/cli.py
imports: from __future__ import absolute_import
  import argparse
  import json
  import sys
  from jsonschema import __version__
  from jsonschema._reflect import namedAny
  from jsonschema.validators import validator_for
label_desc: Use image node_id 5 for calling a global function with example usage: run(arguments, stdout, stderr) and returns: errored