code: def test_early_stop_bandit(self):
      def callback(*args):
          self.val = -1
  
      self.rm.policy = "bandit"
      self.rm.run_job(
          self.job_5, self.rm.get_available("test", "cpu"), {}, callback
      )
      self.rm.finish()
  
      self.assertDictEqual(
          self.rm.interm_job_res, {1: [6.0, 7.0, 8.0, 9.0, 10.0, 11.0]}
      )
      self.assertEqual(self.val, -1)
  
imports: import os
  import unittest
  from shutil import copyfile
  from shutil import rmtree
  import json
  from aup import BasicConfig
  from aup.EE.Job import Job
  from aup.EE.Resource.CPUResourceManager import CPUResourceManager
  from aup.utils import get_default_connector
label_desc: Use image node_id 4 for calling the CPUResourceManagerEarlyStopTestCase obj's underlying member method code with example usage: obj.test_early_stop_bandit() without return types