def METHOD_NAME(request):
    h_name, v_name = request.param.split('x')
    def get_tuple(name):
        degree = int(name[1:2])
        family = 'DG' if 'DG' in name else 'CG'
        return (family, degree)
    return (get_tuple(h_name), get_tuple(v_name))