code: def run_scala_tests_maven(test_profiles):
      mvn_test_goals = ["test", "--fail-at-end"]
  
      profiles_and_goals = test_profiles + mvn_test_goals
  
      print(
          "[info] Running Spark tests using Maven with these arguments: ",
          " ".join(profiles_and_goals),
      )
  
      exec_maven(profiles_and_goals)
  
imports: import itertools
  from argparse import ArgumentParser
  import os
  import re
  import sys
  import subprocess
  from sparktestsupport import SPARK_HOME, USER_HOME, ERROR_CODES
  from sparktestsupport.shellutils import exit_from_command_with_retcode, run_cmd, rm_r, which
  from sparktestsupport.utils import determine_modules_for_files, determine_modules_to_test, determine_tags_to_exclude, identify_changed_files_from_git_commits
  import sparktestsupport.modules
label_desc: Use image node_id 21 for calling a global function with example usage: run_scala_tests_maven(test_profiles) without return types