def hierarchical_cuboids(dimensions, required=None, default_only=False):
 cuboids = combined_cuboids(dimensions, required)
 result = []
 for cuboid in cuboids:
  result += list(combined_levels(cuboid, default_only))
 return result

def hierarchical_cuboids ( dimensions , required = None , default_only = False ) : cuboids = combined_cuboids ( dimensions , required ) result = [ ] for cuboid in cuboids : result += list ( combined_levels ( cuboid , default_only ) ) return result
returns a list of cuboids with all hierarchical level combinations .