<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _confirm_overwrite(filename):
 """Confirm overwrite of template files. Make sure the user would like to continue downloading a file which will overwrite a file in the current directory. Args: filename (str):
 The name of the file to overwrite. Returns: bool: True if the user specifies a "yes" response. """


        message = '{}Would you like to overwrite the contents of {} (y/[n])? '.format(
            c.Fore.MAGENTA, filename
        )
        # 2to3 fixes this for py3
        response = raw_input(message)  # noqa: F821, pylint: disable=E0602
        response = response.lower()

        if response in ['y', 'yes']:
            return True
        return False