code: def test_namedtuple_dump_false(self):
      for v in [Value(1), Point(1, 2)]:
          l = list(v)
          sio = StringIO()
          json.dump(v, sio, namedtuple_as_object=False)
          self.assertEqual(l, json.loads(sio.getvalue()))
          self.assertRaises(
              TypeError,
              json.dump,
              v,
              StringIO(),
              tuple_as_array=False,
              namedtuple_as_object=False,
          )
  
imports: from __future__ import absolute_import
  import unittest
  import simplejson
  from simplejson.compat import StringIO
label_desc: Use image node_id 4 for calling the TestNamedTuple obj's underlying member method code with example usage: obj.test_namedtuple_dump_false() without return types