def bbox_size(bbox):
  """Calcs bounding box width and height.

  :type bbox: list
  :param bbox: bounding box

  :rtype: tuple
  :return: width and height
  """
  x0, y0, x1, y1 = bbox
  return abs(x1 - x0), abs(y1 - y0)