code: def test_misclassify_request_examples():
      """
      Test Misclassify.request_examples
      """
      cfg = AttackConfig(None, None)
      goal = Misclassify(new_work_goal={cfg: 1})
      correctness = np.array(
          [0, 1, 0, 1, 0, 1, 0, 1, 0, 1], dtype=np.bool
      )
      run_counts = np.array(
          [1, 1, 1, 0, 0, 0, 1, 1, 1, 0], dtype=np.int64
      )
      criteria = {"correctness": correctness}
      batch_size = 3
      idxs = goal.request_examples(
          cfg, criteria, {cfg: run_counts}, batch_size
      )
      assert idxs.shape == (batch_size,)
      idxs = list(idxs)
      for already_misclassified in [0, 2, 4, 6, 8]:
          assert already_misclassified not in idxs
      for already_run in [1, 7]:
          assert already_run not in idxs
      for needed in [3, 5, 9]:
          assert needed in idxs
  
imports: import numpy
  from cleverhans.attack_bundling import AttackConfig
  from cleverhans.attack_bundling import Misclassify
  from cleverhans.attack_bundling import unfinished_attack_configs
label_desc: Use image node_id 2 for calling a global function with example usage: test_misclassify_request_examples() without return types