code: def test_undefined_param(self):
      def f(scope):
          nn.dense(scope.push("dense"), np.ones((1, 2)), 2)
  
      msg = (
          r'Could not find parameter named "kernel" in scope "/dense".'
      )
      with self.assertRaisesRegex(errors.ScopeParamNotFoundError, msg):
          apply(f)({"params": {"abc": 1}})
  
imports: import jax
  import numpy
  from absl.testing import absltest
  from jax import numpy
  from jax import random
  from flax import errors
  from flax.configurations import temp_flip_flag
  from flax.core import Scope, apply, freeze, init, lazy_init, nn, scope
  from flax.core.scope import LazyRng
label_desc: Use image node_id 10 for calling the ScopeTest obj's underlying member method code with example usage: obj.test_undefined_param() without return types