<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def last_day(date):
 """ Returns the last day of the month which the given date belongs to. [Row(date=datetime.date(1997, 2, 28))] """

    sc = SparkContext._active_spark_context
    return Column(sc._jvm.functions.last_day(_to_java_column(date)))