code: def check_exception_vals(req_exception, req_exception_vals):
      """
      Check the values of a ProcessorRequirementsException against a dict of expected values.
      :param req_exception: the ProcessorRequirementsException to evaluate
      :param req_exception_vals: expected values for the ProcessorRequirementsException
      :return: None
      """
      assert isinstance(req_exception, ProcessorRequirementsException)
      assert (
          req_exception.processor_type
          == req_exception_vals["processor_type"]
      )
      assert (
          req_exception.processors_list
          == req_exception_vals["processors_list"]
      )
      assert (
          req_exception.err_processor.requires
          == req_exception_vals["requires"]
      )
  
imports: import pytest
  import stanza
  from stanza.pipeline.core import PipelineRequirementsException
  from stanza.pipeline.processor import ProcessorRequirementsException
  from stanza.tests import *
label_desc: Use image node_id 1 for calling a global function with example usage: check_exception_vals(req_exception, req_exception_vals) without return types