code: def test_progressbar_dump(tmp_path: Path) -> None:
      filepath = tmp_path / "pickle.pkl"
      optimizer = optimizerlib.OnePlusOne(parametrization=2, budget=32)
      optimizer.register_callback("tell", ng.callbacks.ProgressBar())
      for _ in range(8):
          cand = optimizer.ask()
          optimizer.tell(cand, 0)
      optimizer.dump(filepath)
      # should keep working after dump
      cand = optimizer.ask()
      optimizer.tell(cand, 0)
      # and be reloadable
      optimizer = optimizerlib.OnePlusOne.load(filepath)
      for _ in range(12):
          cand = optimizer.ask()
          optimizer.tell(cand, 0)
  
imports: import time
  from pathlib import Path
  import logging
  import os
  import numpy
  import nevergrad
  import nevergrad.common.typing
  from .None import optimizerlib
  from .None import callbacks
label_desc: Use image node_id 6 for calling a global function with example usage: test_progressbar_dump(tmp_path) without return types