code: def test_example_features_dict():
      vw = Workspace(quiet=True)
      ex = vw.example(
          {
              "a": {"two": 1, "features": 1.0},
              "namespace": {"more": 1, "feature": 1, 5: 1.5},
          }
      )
      fs = list(ex.iter_features())
      fs_keys = [f[0] for f in fs]
  
      expected = [53373, 165129, 24716, 242309, 5]
  
      assert set(fs_keys) == set(expected)
  
      assert (ex.get_feature_id("a", "two"), 1) in fs
      assert (ex.get_feature_id("a", "features"), 1) in fs
      assert (ex.get_feature_id("namespace", "more"), 1) in fs
      assert (ex.get_feature_id("namespace", "feature"), 1) in fs
      assert (5, 1.5) in fs
  
imports: import os
  from pathlib import Path
  import vowpalwabbit
  from vowpalwabbit import Workspace
  import pytest
  import warnings
  import filecmp
label_desc: Use image node_id 38 for calling a global function with example usage: test_example_features_dict() without return types