code: def test_bytes_decode(self):
      cls = json.decoder.JSONDecoder
      data = b('"\xe2\x82\xac"')
      self.assertEqual(cls().decode(data), "\u20ac")
      self.assertEqual(
          cls(encoding="latin1").decode(data), "\xe2\x82\xac"
      )
      self.assertEqual(cls(encoding=None).decode(data), "\u20ac")
  
      data = MisbehavingBytesSubtype(b('"\xe2\x82\xac"'))
      self.assertEqual(cls().decode(data), "\u20ac")
      self.assertEqual(
          cls(encoding="latin1").decode(data), "\xe2\x82\xac"
      )
      self.assertEqual(cls(encoding=None).decode(data), "\u20ac")
  
imports: from __future__ import absolute_import
  import decimal
  from unittest import TestCase
  import simplejson
  from simplejson.compat import StringIO, b, binary_type
  from simplejson import OrderedDict
label_desc: Use image node_id 11 for calling the TestDecode obj's underlying member method code with example usage: obj.test_bytes_decode() without return types