code: def test_iter():
      discrete_domain = Domain(
          {
              "a": {
                  "b": {2, 3, 4},
                  "j": {"d": {5, 6}, "f": {"g": {7}}},
              },
              "c": {"op1", 0.1},
          }
      )
      all_samples = set(iter(discrete_domain))
      assert all_samples == {
          Sample(
              {"a": {"b": 2, "j": {"d": 5, "f": {"g": 7}}}, "c": "op1"}
          ),
          Sample(
              {"a": {"b": 3, "j": {"d": 5, "f": {"g": 7}}}, "c": "op1"}
          ),
          Sample(
              {"a": {"b": 4, "j": {"d": 5, "f": {"g": 7}}}, "c": "op1"}
          ),
          Sample(
              {"a": {"b": 2, "j": {"d": 6, "f": {"g": 7}}}, "c": "op1"}
          ),
          Sample(
              {"a": {"b": 3, "j": {"d": 6, "f": {"g": 7}}}, "c": "op1"}
          ),
          Sample(
              {"a": {"b": 4, "j": {"d": 6, "f": {"g": 7}}}, "c": "op1"}
          ),
          Sample(
              {"a": {"b": 2, "j": {"d": 5, "f": {"g": 7}}}, "c": 0.1}
          ),
          Sample(
              {"a": {"b": 3, "j": {"d": 5, "f": {"g": 7}}}, "c": 0.1}
          ),
          Sample(
              {"a": {"b": 4, "j": {"d": 5, "f": {"g": 7}}}, "c": 0.1}
          ),
          Sample(
              {"a": {"b": 2, "j": {"d": 6, "f": {"g": 7}}}, "c": 0.1}
          ),
          Sample(
              {"a": {"b": 3, "j": {"d": 6, "f": {"g": 7}}}, "c": 0.1}
          ),
          Sample(
              {"a": {"b": 4, "j": {"d": 6, "f": {"g": 7}}}, "c": 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 11 for calling a global function with example usage: test_iter() without return types