code: def test_update_static_state_submodules(self):
      class Bar(nnx.Module):
          def __init__(self) -> None:
              self.x = 1
  
          def add_field(self):
              self.y = 2
  
      class Foo(nnx.Module):
          def __init__(self) -> None:
              self.a = Bar()
              self.b = self.a
  
      m1 = Foo()
      m2 = Foo()
      m2.a.add_field()
  
      m1.update(m2)
  
      assert m1.a.x == 1
      assert m1.a.y == 2
      assert m1.b.x == 1
      assert m1.b.y == 2
  
imports: import dataclasses
  from copy import deepcopy
  from typing import Any, TypeVar
  import jax
  import jax.numpy
  import pytest
  from flax.experimental import nnx
label_desc: Use image node_id 22 for calling the TestModule obj's underlying member method code with example usage: obj.test_update_static_state_submodules() without return types