code: def _shape_union(shapes):
    
    return Shape(sorted(list(set(sum([s.dims for s in shapes], [])))))
docs: A shape containing the union of all dimensions in the input shapes.
  
    Args:
      shapes: a list of Shapes
  
    Returns:
      a Shape