code: def test_with_overrides(self):
      original = {
          "foo": {"bar": {"baz": 3}, "x": 0},
          "bar": ["a", "b", "c"],
          "baz": {"bar": 2, "y": 3, "x": [0, 1, 2]},
      }
      overrides = {
          "foo.bar": {"z": 2},
          "bar.0": "d",
          "baz.bar": 1,
          "baz.x": [0, 0],
          "z": 2,
      }
      assert with_overrides(original, overrides) == {
          "foo": {"bar": {"z": 2}, "x": 0},
          "bar": ["d", "b", "c"],
          "baz": {"bar": 1, "y": 3, "x": [0, 0]},
          "z": 2,
      }
  
imports: import json
  import os
  import re
  from collections import OrderedDict
  import pytest
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.params import infer_and_cast, Params, remove_keys_from_params, with_overrides
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 4 for calling the TestParams obj's underlying member method code with example usage: obj.test_with_overrides() without return types