code: def test_ambiguities():
      signatures = [[A], [B], [A, B], [B, A], [A, C]]
      expected = {((A, B), (B, A))}
      result = ambiguities(signatures)
      assert set(map(frozenset, expected)) == set(
          map(frozenset, result)
      )
  
      signatures = [[A], [B], [A, B], [B, A], [A, C], [B, B]]
      expected = set()
      result = ambiguities(signatures)
      assert set(map(frozenset, expected)) == set(
          map(frozenset, result)
      )
  
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 5 for calling a global function with example usage: test_ambiguities() without return types