code: def test_check_subtask_processor(setup):
      config = _load_config(CONFIG_FILE)
      config["subtask"][
          "subtask_processor_cls"
      ] = "mars.deploy.oscar.tests.test_checked_session.FakeCheckedSubtaskProcessor"
  
      sess = new_test_session(default=True, config=config)
  
      a = mt.ones((10, 10))
      b = a + 1
  
      with pytest.raises(RuntimeError, match="Premeditated"):
          b.execute()
  
      # test test config
      b.execute(extra_config={"check_all": False})
  
      sess.stop_server()
  
file_path: mars/mars/deploy/oscar/tests/test_checked_session.py
imports: from typing import Any, Dict
  import numpy
  import pytest
  from ....None import tensor
  from ....config import option_context
  from ....core import TileableType, OperandType
  from ....services.task.supervisor.tests import CheckedTaskPreprocessor
  from ....services.subtask.worker.tests import CheckedSubtaskProcessor
  from ..local import _load_config
  from ..tests.session import new_test_session, CONFIG_FILE
label_desc: Use image node_id 4 for calling a global function with example usage: test_check_subtask_processor(setup) without return types