code: def test_remove_gens():
      S = SymmetricGroup(10)
      base, strong_gens = S.schreier_sims_incremental()
      new_gens = _remove_gens(base, strong_gens)
      assert _verify_bsgs(S, base, new_gens) is True
      A = AlternatingGroup(7)
      base, strong_gens = A.schreier_sims_incremental()
      new_gens = _remove_gens(base, strong_gens)
      assert _verify_bsgs(A, base, new_gens) is True
      D = DihedralGroup(2)
      base, strong_gens = D.schreier_sims_incremental()
      new_gens = _remove_gens(base, strong_gens)
      assert _verify_bsgs(D, base, new_gens) is True
  
file_path: sympy/sympy/combinatorics/tests/test_util.py
imports: from sympy.combinatorics.named_groups import SymmetricGroup, DihedralGroup, AlternatingGroup
  from sympy.combinatorics.permutations import Permutation
  from sympy.combinatorics.util import _check_cycles_alt_sym, _strip, _distribute_gens_by_base, _strong_gens_from_distr, _orbits_transversals_from_bsgs, _handle_precomputed_bsgs, _base_ordering, _remove_gens
  from sympy.combinatorics.testutil import _verify_bsgs
label_desc: Use image node_id 8 for calling a global function with example usage: test_remove_gens() without return types