code: def submit_experiment_to_azureml(
      test, run_config, experiment, test_group, test_kind, warnings
  ):
      """
      Submitting the experiment to AzureML actually runs the script.
  
      Args:
          test (str): Pytest script, folder/test such as ./tests/ci/run_pytest.py
          run_config (obj): Environment configuration
          experiment (obj): Instance of an Experiment, a collection of
                       trials where each trial is a run.
          test_group (str): Name of the test group.
          test_kind (str): Name of the test kind, such as nightly or unit.
          pytestargs (str): Pytest arguments.
  
      Return:
            obj: AzureML run or trial
      """
  
      arguments = ["--testgroup", test_group, "--testkind", test_kind]
      if warnings is True:
          arguments.append("--disable-warnings")
  
      script_run_config = ScriptRunConfig(
          source_directory=".",
          script=test,
          run_config=run_config,
          arguments=arguments,
      )
      run = experiment.submit(script_run_config)
      # waits only for configuration to complete
      run.wait_for_completion(
          show_output=True, wait_post_processing=True
      )
  
      # test logs can also be found on azure
      # go to azure portal to see log in azure ws and look for experiment name
      # and look for individual run
      logger.debug("files {}".format(run.get_file_names))
  
      return run
  
file_path: recommenders/tests/ci/azureml_tests/submit_groupwise_azureml_pytest.py
imports: import argparse
  import logging
  import glob
  from azureml.core.authentication import AzureCliAuthentication
  from azureml.core import Workspace
  from azureml.core import Experiment
  from azureml.core.runconfig import RunConfiguration
  from azureml.core.conda_dependencies import CondaDependencies
  from azureml.core.script_run_config import ScriptRunConfig
  from azureml.core.compute import ComputeTarget, AmlCompute
  from azureml.core.compute_target import ComputeTargetException
  from azureml.core.workspace import WorkspaceException
label_desc: Use image node_id 5 for calling a global function with example usage: submit_experiment_to_azureml(test, run_config, experiment, test_group, test_kind, warnings) and returns: run