code: def test_no_warning(name: str, method: str) -> None:
      with warnings.catch_warnings(record=True) as w:
          core.Photonics(name, 24, bounding_method=method)
          assert not w, f"Got a warning at initialization: {w[0]}"
  
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 7 for calling a global function with example usage: test_no_warning(name, method) without return types