code: def test_namespace_id():
      vw_ex = Workspace(quiet=True)
      ex = vw_ex.example("1 |a two features |b more features here")
      nm1 = vowpalwabbit.NamespaceId(ex, 0)
      nm2 = vowpalwabbit.NamespaceId(ex, 1)
      nm3 = vowpalwabbit.NamespaceId(ex, 2)
      assert nm1.id == 0
      assert nm1.ord_ns == 97
      assert nm1.ns == "a"
      assert nm2.id == 1
      assert nm2.ord_ns == 98
      assert nm2.ns == "b"
      assert nm3.id == 2
      assert nm3.ord_ns == 128
      assert nm3.ns == "\x80"
  
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 28 for calling a global function with example usage: test_namespace_id() without return types