code: def get_bounding_box(points):
      
      assert len(points) > 0, "At least one point has to be given."
      min_x, max_x = points[0]['x'], points[0]['x']
      min_y, max_y = points[0]['y'], points[0]['y']
      for point in points:
          min_x, max_x = min(min_x, point['x']), max(max_x, point['x'])
          min_y, max_y = min(min_y, point['y']), max(max_y, point['y'])
      p1 = Point(min_x, min_y)
      p2 = Point(max_x, max_y)
      return BoundingBox(p1, p2)
docs: Get the bounding box of a list of points.
  
      Parameters
      ----------
      points : list of points
  
      Returns
      -------
      BoundingBox