code: def test_core_function(
      func: Callable[[np.ndarray], float],
      expected: float,
      data: Optional[List[float]],
  ) -> None:
      if data is None:
          data = [
              0.662,
              -0.217,
              -0.968,
              1.867,
              0.101,
              0.575,
              0.199,
              1.576,
              1.006,
              0.182,
              -0.092,
              0.466,
          ]  # only for non-regression
      value = func(np.array(data))
      np.testing.assert_almost_equal(value, expected, decimal=5)
  
file_path: nevergrad/nevergrad/functions/lsgo/test_core.py
imports: from typing import Callable, Optional, List, Iterable, Type, Union
  import numpy
  import pytest
  from nevergrad.common import testing
  from .None import _core
label_desc: Use image node_id 1 for calling a global function with example usage: test_core_function(func, expected, data) without return types