code: def test_value_error_positional_argument_type_context(self):
      class Block(nnx.Module):
          def __init__(self, rngs: nnx.Rngs):
              self.linear = nnx.Linear(3, 3, rngs=rngs)
  
          def __call__(self, x: jax.Array) -> tp.Tuple[jax.Array, None]:
              x = self.linear(x)
              return x, None
  
      MLP = nnx.Scan(
          Block,
          variable_axes={nnx.Param: 0},
          length=5,
      )
  
      with pytest.raises(
          ValueError,
          match="Rngs must be passed as a keyword argument named",
      ):
          MLP(nnx.Rngs(0))
  
imports: import typing
  from functools import partial
  import jax
  import jax.numpy
  import pytest
  from flax.experimental import nnx
label_desc: Use image node_id 11 for calling the TestScan obj's underlying member method code with example usage: obj.test_value_error_positional_argument_type_context() and returns: x,  None