<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copy_to_local(self, src, localdest, **kwargs):
 """Copy a single file from ``src`` to the local file system Takes all arguments that :py:meth:`open` takes. """

        with self.open(src, **kwargs) as fsrc:
            with io.open(localdest, 'wb') as fdst:
                shutil.copyfileobj(fsrc, fdst)