<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def open(self, filename, mode='r'):
 """Returns file object from given filename."""


        self._raise_if_none()
        fn = path_join(self.path, filename)

        return open(fn, mode)