code: def test_pruning_sensible_default(
      nw: int, dimension: int, expected_min: int, expected_max: int
  ) -> None:
      pruning = utils.Pruning.sensible_default(
          num_workers=nw, dimension=dimension
      )
      assert pruning.min_len == expected_min
      assert pruning.max_len == expected_max
  
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 7 for calling a global function with example usage: test_pruning_sensible_default(nw, dimension, expected_min, expected_max) without return types