def METHOD_NAME(self):
    tags = {
        "hello": {"encoding": "base64"},
        "url": {"encoding": "url"},
        "foo": {"children": {"baz": {"hashing": "md5"}}},
    }
    values_to_sub = {
        "hello": "world",
        "url": "http://www.example.com/?a=1&b=2",
        "foo": "bar",
    }
    result = events.Events().transform(tags, values_to_sub)
    expected = {
        "hello": "d29ybGQ=",
        "url": "http%3A//www.example.com/%3Fa%3D1%26b%3D2",
        "foo": "bar",
        "baz": "37b51d194a7513e45b56f6524f2d51f2",
    }
    self.assertEqual(result, expected)