from datetime import datetime


def beginning_of_month(dte):
    """
    Return the first day of the month where the year and month equal the corresponding year and month
    in dte parameters.

    Argument:
        dte - the date of interest
    """
    year = dte.year
    month = dte.month
    first = datetime(year, month, 1)
    return first