code: def test_named_tuple_to_dict(self) -> None:
      class Foo(NamedTuple):
          x: int
          y: str
  
      foo = Foo(x=5, y="g")
      self.assertEqual(named_tuple_to_dict(foo), {"x": 5, "y": "g"})
  
      bar = {"x": 5, "foo": foo, "y": [(1, True), foo]}
      self.assertEqual(
          named_tuple_to_dict(bar),
          {
              "x": 5,
              "foo": {"x": 5, "y": "g"},
              "y": [(1, True), {"x": 5, "y": "g"}],
          },
      )
  
imports: from typing import NamedTuple
  from ax.utils.common.serialization import named_tuple_to_dict
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 1 for calling the TestSerializationUtils obj's underlying member method code with example usage: obj.test_named_tuple_to_dict() without return types