def METHOD_NAME(form):
    def iter_f():
        itr = itertools.combinations_with_replacement(range(3), 8)
        next(itr)  # drop empty cube
        for cubes in itertools.combinations_with_replacement(range(3), 8):
            if cubes == (2, 2, 2, 2, 2, 2, 2, 2):
                continue  # drop SOLID empty
            c_sum = 0
            for cube in cubes:
                c_sum += form.avg(cube)
            yield c_sum / 8
    return statistics.median(iter_f())