code: def download_file(self, remote_filename, local_filename=None):
          
          status = 'Failed'
          if local_filename is None:
              local_filename = remote_filename
  
          if not self.args.force and os.access(local_filename, os.F_OK):
              if not self._confirm_overwrite(local_filename):
                  self._print_results(local_filename, 'Skipped')
                  return
  
          url = '{}{}'.format(self.base_url, remote_filename)
          r = requests.get(url, allow_redirects=True)
          if r.ok:
              open(local_filename, 'wb').write(r.content)
              status = 'Success'
          else:
              self.handle_error('Error requesting: {}'.format(url), False)
  
          # print download status
          self._print_results(local_filename, status)
docs: Download file from github.
  
          Args:
              remote_filename (str): The name of the file as defined in git repository.
              local_filename (str, optional): Defaults to None. The name of the file as it should be
                  be written to local filesystem.