<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def owner(self, pathobj):
 """ Returns file owner This makes little sense for Artifactory, but to be consistent with pathlib, we return modified_by instead, if available """

        stat = self.stat(pathobj)

        if not stat.is_dir:
            return stat.modified_by
        else:
            return 'nobody'