code: def test_misbehaving_bytes_subtype(self):
      data = b("this is some data \xe2\x82\xac")
      self.assertEqual(
          json.dumps(MisbehavingBytesSubtype(data)), json.dumps(data)
      )
      self.assertEqual(
          json.dumps([MisbehavingBytesSubtype(data)]),
          json.dumps([data]),
      )
      self.assertEqual(
          json.dumps({MisbehavingBytesSubtype(data): 42}),
          json.dumps({data: 42}),
      )
  
imports: from unittest import TestCase
  from simplejson.compat import StringIO, long_type, b, binary_type, text_type, PY3
  import simplejson
label_desc: Use image node_id 11 for calling the TestDump obj's underlying member method code with example usage: obj.test_misbehaving_bytes_subtype() without return types