code: def test_angles(deg: bool, bound_method: tp.Any) -> None:
      span = 360 if deg else 2 * np.pi
      params = [
          _datalayers.Angles(
              shape=(10,), deg=deg, bound_method=bound_method
          )
          / span
          + 0.5
          for _ in range(2)
      ]
      assert params[0].bounds == (0, 1)
      values = [np.linspace(0, 1, 10), np.linspace(1, 0, 10)]
      for param, value in zip(params, values):
          param.value = value
          assert param.value == pytest.approx(value)
      average = params[1].get_standardized_data(reference=params[0]) / 2
      params[1].set_standardized_data(average, reference=params[0])
      assert params[1].value.tolist() == pytest.approx(
          [1, 1, 1, 0.5, 0.5, 0.5, 0.5, 1, 1, 1]
      )
  
imports: import pytest
  import numpy
  import nevergrad
  from nevergrad.common import testing
  import nevergrad.common.typing
  from .None import _datalayers
  from .None import helpers
label_desc: Use image node_id 15 for calling a global function with example usage: test_angles(deg, bound_method) without return types