<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _rsync_cmd(self):
 """Helper method to generate base rsync command."""

        cmd = ['rsync']
        if self._identity_file:
            cmd += ['-e', 'ssh -i ' + os.path.expanduser(self._identity_file)]
        return cmd