def METHOD_NAME(self, task_id, user_id, language):
    # Source files are stored under cmstestsuite/code/.
    path = os.path.join(os.path.dirname(__file__), 'code')
    # Choose the correct file to submit.
    filename = self.filename.replace("%l", language)
    full_path = os.path.join(path, filename)
    # Submit our code.
    self.submission_ids = [
        self.framework.cws_submit(
            task_id, user_id,
            self.submission_format_element, full_path, language)
        for _ in range(self.repetitions)]