code: def test_as_namedtuple():
      domain = Domain({"a": {"b": {2, 3, 4}}, "c": [0, 0.1]})
      nt = domain.as_namedtuple()
      assert nt.a == namedtuple("_", "b")({2, 3, 4})
      assert nt.a.b == {2, 3, 4}
      assert nt.c == [0, 0.1]
  
file_path: hypertunity/hypertunity/tests/test_domain.py
imports: from collections import namedtuple
  import pytest
  from hypertunity.domain import Domain, DomainNotIterableError, DomainSpecificationError, Sample
label_desc: Use image node_id 8 for calling a global function with example usage: test_as_namedtuple() without return types