code: def test_ordering():
      signatures = [[A, A], [A, B], [B, A], [B, B], [A, C]]
      ord = ordering(signatures)
      assert ord[0] == (B, B) or ord[0] == (A, C)
      assert ord[-1] == (A, A) or ord[-1] == (A, C)
  
file_path: sympy/sympy/multipledispatch/tests/test_conflict.py
imports: from sympy.multipledispatch.conflict import supercedes, ordering, ambiguities, ambiguous, super_signature, consistent
label_desc: Use image node_id 6 for calling a global function with example usage: test_ordering() without return types