code: def test_asdict_not_callable_dumps(self):
      for f in CONSTRUCTORS:
          self.assertRaises(
              TypeError,
              json.dumps,
              f(DeadDuck()),
              namedtuple_as_object=True,
          )
          self.assertRaises(
              TypeError, json.dumps, f(Value), namedtuple_as_object=True
          )
          self.assertEqual(
              json.dumps(f({})),
              json.dumps(f(DeadDict()), namedtuple_as_object=True),
          )
  
imports: from __future__ import absolute_import
  import unittest
  import simplejson
  from simplejson.compat import StringIO
label_desc: Use image node_id 6 for calling the TestNamedTuple obj's underlying member method code with example usage: obj.test_asdict_not_callable_dumps() without return types