code: def test_misbehaving_text_subtype(self):
      # https://github.com/simplejson/simplejson/issues/185
      text = "this is some text"
      self.assertEqual(
          json.dumps(MisbehavingTextSubtype(text)), json.dumps(text)
      )
      self.assertEqual(
          json.dumps([MisbehavingTextSubtype(text)]), json.dumps([text])
      )
      self.assertEqual(
          json.dumps({MisbehavingTextSubtype(text): 42}),
          json.dumps({text: 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 10 for calling the TestDump obj's underlying member method code with example usage: obj.test_misbehaving_text_subtype() without return types