code: def test_photonics_mean(pb: str, expected: tp.List[float]) -> None:
      func = core.Photonics(pb, 8)
      all_x = func.parametrization.value
      output = all_x.ravel()
      np.testing.assert_almost_equal(output, expected, decimal=2)
  
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 2 for calling a global function with example usage: test_photonics_mean(pb, expected) without return types