code: def test_sow_wrong_collection(self):
      class Foo(nnx.Module):
          def __init__(self) -> None:
              self.y = nnx.Param(10)
  
          def __call__(self, x):
              y = x + 1
              self.sow(nnx.Intermediate, "y", y)
              return y
  
      m = Foo()
  
      with pytest.raises(ValueError, match="to be of type"):
          m(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 19 for calling the TestModule obj's underlying member method code with example usage: obj.test_sow_wrong_collection() and returns: y