code: def test_variable_cannot_change_collection(self):
      x = nnx.Param(1)
  
      with pytest.raises(
          ValueError, match="is not compatible with return type"
      ):
          x = nnx.BatchStat(x)
  
file_path: flax/flax/experimental/nnx/tests/test_containers.py
imports: import pytest
  from flax.experimental import nnx
label_desc: Use image node_id 3 for calling the TestContainers obj's underlying member method code with example usage: obj.test_variable_cannot_change_collection() without return types