code: def test_transform(
      func: Callable[[np.ndarray], np.ndarray],
      data: List[float],
      expected: List[float],
  ) -> None:
      value = func(np.array(data))
      np.testing.assert_almost_equal(value, expected, decimal=3)
  
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 2 for calling a global function with example usage: test_transform(func, data, expected) without return types