class_docstr: Tests for Scenic Optax utils.
class_docstr_tok: ["Tests","for","Scenic","Optax","utils","."]
docstr: Tests `make_mask_trees` with allow_unmatched=False raises.
docstr_tok: ["Tests","`","make_mask_trees","`","with","allow_unmatched=False","raises","."]
code: def test_make_mask_trees_unmatched(self):
      """Tests `make_mask_trees` with allow_unmatched=False raises."""
      tree = {"a": {"b": 1}, "c": 2, "d": 3}
      patterns = [("a/.*", "A"), ("b/.*", "B"), ("c", "C")]
      with self.assertRaises(ValueError):
          optax.make_mask_trees(tree, patterns, allow_unmatched=False)
  
imports: from typing import Optional
  from absl.testing import absltest
  from absl.testing import parameterized
  import ml_collections
  from scenic.train_lib import optax
  import tensorflow
label_desc: Use image node_id 2 for calling the OptaxTest obj's underlying member method code with example usage: obj.test_make_mask_trees_unmatched() without return types