<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fromxldate(xldate, datemode=1):
 """Return a python datetime object xldate: float The xl number. datemode: int 0: 1900-based, 1: 1904-based. See xlrd documentation. """


    t = xlrd.xldate_as_tuple(xldate, datemode)
    return datetime.datetime(*t)