code: def test_check_homomorphism():
      a = Permutation(1, 2, 3, 4)
      b = Permutation(1, 3)
      G = PermutationGroup([a, b])
      raises(ValueError, lambda: homomorphism(G, G, [a], [a]))
  
file_path: sympy/sympy/combinatorics/tests/test_homomorphisms.py
imports: from sympy.combinatorics import Permutation
  from sympy.combinatorics.perm_groups import PermutationGroup
  from sympy.combinatorics.homomorphisms import homomorphism, group_isomorphism, is_isomorphic
  from sympy.combinatorics.free_groups import free_group
  from sympy.combinatorics.fp_groups import FpGroup
  from sympy.combinatorics.named_groups import AlternatingGroup, DihedralGroup, CyclicGroup
  from sympy.testing.pytest import raises
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_homomorphism() without return types