code: def test_duplicate_fields():
      class A(eqxi.Enumeration):
          a = "hi"
  
      class B(eqxi.Enumeration):
          a = "hi"
  
      class C(A, B):  # pyright: ignore
          pass
  
      class D(A):  # pyright: ignore
          a = "hi"
  
      with pytest.warns():
  
          class E(A):  # pyright: ignore
              a = "not hi"
  
          assert E[E.a] == "not hi"
  
      with pytest.warns():
  
          class F(A, B):  # pyright: ignore
              a = "not hi"
  
          assert F[F.a] == "not hi"
  
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 8 for calling a global function with example usage: test_duplicate_fields() without return types