code: def test_archive_errors() -> None:
      archive: utils.Archive[float] = utils.Archive()
      archive[[12, 0.0]] = 12.0
      np.testing.assert_raises(
          AssertionError, archive.__getitem__, [12, 0]
      )  # int instead of float
      np.testing.assert_raises(AssertionError, archive.__getitem__, [[12], [0.0]])  # type: ignore
      np.testing.assert_raises(RuntimeError, archive.keys)
      np.testing.assert_raises(RuntimeError, archive.items)
  
file_path: nevergrad/nevergrad/optimization/test_utils.py
imports: import pickle
  import pytest
  import numpy
  import nevergrad
  from nevergrad.common import testing
  from .test_base import CounterFunction
  from .None import experimentalvariants
  from .None import utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_archive_errors() without return types