def is_bbox_in_rect(rect, bbox):
  """Checks whether is second bounding box inside the first
  bounding box or not.

  :type rect: list
  :param rect: second bounding box

  :type bbox: list
  :param bbox: first bounding box

  :rtype: boolean
  :return: boolean check result
  """
  x0, y0, x1, y1 = rect
  _x0, _y0, _x1, _y1 = bbox
  if x0 > _x0 or y0 > _y0 or x1 < _x1 or y1 < _y1:
    return False
  return True