<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _CopyFileObjectToTemporaryFile(self, file_object, temporary_file):
 """Copies the contents of the file-like object to a temporary file. Args: file_object (dfvfs.FileIO):
 file-like object. temporary_file (file):
 temporary file. """

    file_object.seek(0, os.SEEK_SET)
    data = file_object.read(self._READ_BUFFER_SIZE)
    while data:
      temporary_file.write(data)
      data = file_object.read(self._READ_BUFFER_SIZE)