def check_interval(child_span, parent_span):
    """
    Given a child span and a parent span, check if the child is inside the parent
    """
    child_start, child_end = child_span
    parent_start, parent_end = parent_span
    if (
        (child_start >= parent_start)
       &(child_end <= parent_end)
       ):
        return True
    else:
        return False