code: def test_getitem():
      class A(eqxi.Enumeration):
          a = "hi"
  
      class B(eqxi.Enumeration):
          b = "bye"
  
      A[A.a]
      with pytest.raises(ValueError):
          A[0]
      with pytest.raises(ValueError):
          A[B.b]
  
file_path: equinox/tests/test_enum.py
imports: import equinox
  import equinox.internal
  import jax
  import jax.numpy
  import jax.tree_util
  import pytest
  from .helpers import tree_allclose
label_desc: Use image node_id 6 for calling a global function with example usage: test_getitem() without return types