code: def test_scalar_sampling(param: par.Scalar, expected: bool) -> None:
      spawned_vals = [
          np.abs(param.spawn_child().value) for _ in range(10)
      ]
      sampled_vals = [np.abs(param.sample().value) for _ in range(10)]
      assert not np.any(np.array(spawned_vals) > 100)
      assert np.any(np.array(sampled_vals) > 100) == expected
  
imports: import pickle
  import typing
  import pytest
  import numpy
  from nevergrad.common import errors
  from .None import parameter
label_desc: Use image node_id 17 for calling a global function with example usage: test_scalar_sampling(param, expected) without return types