<｜begin▁of▁sentence｜>### Instruction:
Given two bounding boxes with coordinates (0, 0, 100, 100) and (50, 50, 150, 150), how can you use the __ior__ method from the igraph BoundingBox module to calculate the union bounding box that encompasses both?
### Response:
from igraph.drawing import BoundingBox

# Create two bounding boxes
bbox1 = BoundingBox(0, 0, 100, 100)
bbox2 = BoundingBox(50, 50, 150, 150)

# Using the __ior__ method to create a union of the two bounding boxes
bbox_union = bbox1.__ior__(bbox2)

print(f'Union of bounding boxes: {bbox_union}')
<|EOT|>
