code: def test_array_basics() -> None:
      var1 = par.Array(shape=(1,))
      var2 = par.Array(shape=(2, 2))
      d = par.Dict(var1=var1, var2=var2, var3=12)
      data = d.get_standardized_data(reference=d)
      assert data.size == 5
      d.set_standardized_data(np.array([1, 2, 3, 4, 5]))
      assert var1.value[0] == 1
      np.testing.assert_array_equal(
          d.value["var2"], np.array([[2, 3], [4, 5]])
      )
      # setting value on arrays
      with pytest.raises(ValueError):
          var1.value = np.array([1, 2])
      with pytest.raises(TypeError):
          var1.value = 4  # type: ignore
      var1.value = np.array([2])
      representation = repr(d)
      assert "Dict(var1" in representation
      d.set_name("blublu")
      representation = repr(d)
      assert "blublu:{'var1" in representation
  
imports: import pickle
  import typing
  import pytest
  import numpy
  from nevergrad.common import errors
  from .None import parameter
label_desc: Use image node_id 1 for calling a global function with example usage: test_array_basics() without return types