code: def test_scalar() -> None:
      token = p.Scalar().set_integer_casting()
      assert token.spawn_child().set_standardized_data([0.7]).value == 1
      new_token = token.spawn_child(new_value=1)
      assert new_token.get_standardized_data(
          reference=token
      ).tolist() == [1.0]
  
file_path: nevergrad/nevergrad/parametrization/test_parameters_legacy.py
imports: import typing
  import numpy
  import pytest
  from .None import parameter
label_desc: Use image node_id 9 for calling a global function with example usage: test_scalar() without return types