code: def test_runner_submit_new_trials():
      mock_scheduler = mock.MagicMock()
      mock_scheduler.submit_job.side_effect = ["job1", "job2", "job3"]
      mock_study = mock.MagicMock()
      mock_study.get_suggestion.side_effect = [
          get_test_trial(1),
          get_test_trial(2),
          get_test_trial(3),
      ]
  
      r = sherpa.core._Runner(
          study=mock_study,
          scheduler=mock_scheduler,
          database=mock.MagicMock(),
          max_concurrent=3,
          command=["python", "test.py"],
      )
  
      r.submit_new_trials()
  
      mock_scheduler.submit_job.has_calls(
          [
              mock.call(["python", "test.py"]),
              mock.call(["python", "test.py"]),
              mock.call(["python", "test.py"]),
          ]
      )
      assert len(r._active_trials) == 3
      assert len(r._all_trials) == 3
  
file_path: sherpa/tests/test_runner.py
imports: import sherpa
  import sherpa.core
  import sherpa.schedulers
  import sherpa.database
  from testing_utils import *
label_desc: Use image node_id 4 for calling a global function with example usage: test_runner_submit_new_trials() without return types