code: def test_log_sampling(log: ng.p.Data) -> None:
      values: tp.List[float] = []
      while len(values) < 100:
          new = log.sample().value
          if isinstance(new, np.ndarray):
              values.extend(new.tolist())
          else:
              values.append(new)
      proba = np.mean(np.array(values) < 0.1)
      assert 0.5 < proba < 1
  
imports: import pytest
  import numpy
  import nevergrad
  from nevergrad.common import testing
  import nevergrad.common.typing
  from .None import _datalayers
  from .None import helpers
label_desc: Use image node_id 7 for calling a global function with example usage: test_log_sampling(log) without return types