code: def test_chaining_log_parameters(tmp_path: Path) -> None:
      filepath = tmp_path / "logs.txt"
      params = ng.p.Instrumentation(
          None,
          2.0,
          blublu="blublu",
          array=ng.p.Array(shape=(3, 2)),
          multiobjective=False,
      )
      zmethods = ["CauchyLHSSearch", "DE", "CMA"]
      ztmp1 = [ng.optimizers.registry[zmet] for zmet in zmethods]
      optmodel = ng.families.Chaining(ztmp1, [50, 50])  #
      optim = optmodel(
          parametrization=params, budget=100, num_workers=3
      )
      logger = ng.callbacks.ParametersLogger(filepath)
      optim.register_callback("tell", logger)
      optim.minimize(_func, verbosity=2)
      # read
      logger = callbacks.ParametersLogger(filepath)
      logs = logger.load_flattened()
      assert len(logs) == 100
  
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 4 for calling a global function with example usage: test_chaining_log_parameters(tmp_path) without return types