code: def test_sampling():
      domain = Domain({"a": {"b": {2, 3, 4}}, "c": [0, 0.1]})
      for i in range(10):
          sample = domain.sample()
          assert (
              sample["a"]["b"] in {2, 3, 4}
              and 0.0 <= sample["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 12 for calling a global function with example usage: test_sampling() without return types