docstr: Asserts that |to_wrap| becomes |expected| when wrapped.
docstr_tok: ["Asserts","that","|to_wrap|","becomes","|expected|","when","wrapped","."]
code: def _assertWrapsAs(self, to_wrap, expected):
      """Asserts that |to_wrap| becomes |expected| when wrapped."""
      actual = json_util.Cleanse(to_wrap)
      for a, e in zip(actual, expected):
          self.assertEqual(e, a)
  
file_path: tensorboard/tensorboard/backend/json_util_test.py
imports: import collections
  import string
  from tensorboard import test
  from tensorboard.backend import json_util
label_desc: Use image node_id 1 for calling the CleanseTest obj's underlying member method code with example usage: obj._assertWrapsAs(to_wrap, expected) without return types