<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read(path):
 """ Read the contents of a LockFile. Arguments: path (str):
 Path to lockfile. Returns: Tuple(int, datetime):
 The integer PID of the lock owner, and the date the lock was required. If the lock is not claimed, both values are None. """

        if fs.exists(path):
            with open(path) as infile:
                components = infile.read().split()
                pid = int(components[0])
                date = datetime.date.fromtimestamp(float(components[1]))
            return pid, date
        else:
            return None, None