code: def test_history_non_existing_values_batch(self, history):
      with pytest.raises(KeyError):
          # pylint: disable=pointless-statement
          history[:, "batches", :, "non-existing"]
      with pytest.raises(KeyError):
          # pylint: disable=pointless-statement
          history[:, "batches", 1, "extra_batch"]
  
imports: import pickle
  import time
  import multiprocessing
  from functools import partial
  import numpy
  import pytest
  import torch
  from torch.distributed import TCPStore
  from sklearn.datasets import make_classification
label_desc: Use image node_id 15 for calling the TestHistory obj's underlying member method code with example usage: obj.test_history_non_existing_values_batch(history) without return types