<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def competition_download_file(self, competition, file_name, path=None, force=False, quiet=False):
 """ download a competition file to a designated location, or use a default location Paramters ========= competition: the name of the competition file_name: the configuration file name path: a path to download the file to force: force the download if the file already exists (default False) quiet: suppress verbose output (default is False) """

        if path is None:
            effective_path = self.get_default_download_dir(
                'competitions', competition)
        else:
            effective_path = path

        response = self.process_response(
            self.competitions_data_download_file_with_http_info(
                id=competition, file_name=file_name, _preload_content=False))
        url = response.retries.history[0].redirect_location.split('?')[0]
        outfile = os.path.join(effective_path, url.split('/')[-1])

        if force or self.download_needed(response, outfile, quiet):
            self.download_file(response, outfile, quiet)