code: def test_update_static_add_shared_error(self):
      a = {"a": 1, "b": nnx.Param(2)}
      g = [a, 3, a, nnx.Param(4)]
      g2 = [a, 3, a, nnx.Param(4), a]
  
      with pytest.raises(
          ValueError, match="Trying to add a new node at path"
      ):
          nnx.graph_utils.graph_update_static(g, g2)
  
file_path: flax/flax/experimental/nnx/tests/test_graph_utils.py
imports: import jax
  import pytest
  from flax.experimental import nnx
label_desc: Use image node_id 8 for calling the TestGraphUtils obj's underlying member method code with example usage: obj.test_update_static_add_shared_error() without return types