code: def test_benchmark_chunk_resuming() -> None:
      chunk = core.BenchmarkChunk(
          name="repeated_basic", seed=12, repetitions=1, cap_index=2
      )
      # creating an error on the first experiment
      with patch("nevergrad.benchmark.xpbase.Experiment.run") as run:
          run.side_effect = ValueError("test error string")
          np.testing.assert_raises(ValueError, chunk.compute)
      # making sure we restart from the actual experiment
      assert chunk._current_experiment is not None
      with warnings.catch_warnings(record=True) as w:
          warnings.filterwarnings(
              "ignore", category=errors.InefficientSettingsWarning
          )
          chunk.compute()
          assert not w or (
              "Seeding" in str(w[0].message)
          ), f"A warning was raised while it should not have (experiment could not be resumed): {w[0].message}"  # We accept warnings due to seeding stuff.
  
imports: from .__main__ import repeated_launch
  import sys
  import warnings
  import tempfile
  import itertools
  from unittest.mock import patch
  from pathlib import Path
  import numpy
  import pandas
  import matplotlib
  from nevergrad.optimization import optimizerlib
  from nevergrad.parametrization.utils import CommandFunction, FailedJobError
  from nevergrad.common import testing
  from nevergrad.common import errors
  from .None import utils
  from .None import core
  from .test_xpbase import DESCRIPTION_KEYS
label_desc: Use image node_id 10 for calling a global function with example usage: test_benchmark_chunk_resuming() without return types