from datetime import datetime
from typing import Dict


def is_in_semester(
    date_time: datetime,
    semester_info: Dict,
) -> bool:
    """
    Check if a datetime is within the first and last days of the semester.

    :param date_time: the date/time
    :param semester_info: the semester info
    :return True if the given date/time is in the semester, False otherwise
    """
    return semester_info['first_day'] <= date_time.date() <= semester_info['last_day']