<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fprint(self, file, indent):
 """ Print contents of directory to open stream """

        return lib.zdir_fprint(self._as_parameter_, coerce_py_file(file), indent)