code: def test_photonics_values(
      name: str, value: float, expected: float
  ) -> None:
      if name == "morpho" and os.environ.get("CIRCLECI", False):
          raise SkipTest("Too slow in CircleCI")
      photo = core.Photonics(name, 16)
      np.testing.assert_almost_equal(
          photo(value * np.ones(16)), expected, decimal=4
      )
  
imports: import os
  from unittest import SkipTest
  import warnings
  import typing
  import pytest
  import numpy
  from nevergrad.common import testing
  from .None import core
  from .None import photonics
label_desc: Use image node_id 8 for calling a global function with example usage: test_photonics_values(name, value, expected) without return types