defRubikGroup(n):"""Return a group of Rubik's cube generators. >>> from sympy.combinatorics.named_groups import RubikGroup >>> RubikGroup(2).is_group() False """fromsympy.combinatorics.generatorsimportrubikifn<=1:raiseValueError("Invalid cube . n has to be greater than 1")returnPermutationGroup(rubik(n))