code: def test_W_model() -> None:
      try:
          func = core.WModelFunction()
      except ModuleNotFoundError as e:
          raise SkipTest("IOH is not installed") from e
      x = func.parametrization.sample()
      func2 = core.PBOFunction(1, 0, 16)
      assert func(x.value) == func2(
          x.value
      ), "W-model with default setting should equal base_function"
      func = core.WModelFunction(base_function="LeadingOnes")
      x = func.parametrization.sample()
      func2 = core.PBOFunction(2, 0, 16)
      assert func(x.value) == func2(
          x.value
      ), "W-model with default setting should equal base_function"
  
file_path: nevergrad/nevergrad/functions/iohprofiler/test_core.py
imports: from unittest import SkipTest
  import pytest
  import numpy
  from nevergrad.optimization.optimizerlib import OnePlusOne
  from .None import core
label_desc: Use image node_id 3 for calling a global function with example usage: test_W_model() without return types