code: def test_sweep_2_jobs_2_batches(
      self,
      hydra_sweep_runner: TSweepRunner,
      launcher_name: str,
      overrides: List[str],
      tmpdir: Path,
  ) -> None:
      job_overrides = ["group1=file1,file2", "bar=100,200,300"]
      hydra_overrides = ["hydra/launcher=" + launcher_name]
      overrides.extend(job_overrides)
      overrides.extend(hydra_overrides)
      sweep = hydra_sweep_runner(
          calling_file=None,
          calling_module="hydra.test_utils.a_module",
          task_function=None,
          config_path="configs",
          config_name="compose.yaml",
          overrides=overrides,
          temp_dir=tmpdir,
      )
      expected_overrides = [
          ["group1=file1", "bar=100"],
          ["group1=file1", "bar=200"],
          ["group1=file1", "bar=300"],
          ["group1=file2", "bar=100"],
          ["group1=file2", "bar=200"],
          ["group1=file2", "bar=300"],
      ]
  
      expected_conf = [
          {"foo": 10, "bar": 100},
          {"foo": 10, "bar": 200},
          {"foo": 10, "bar": 300},
          {"foo": 20, "bar": 100},
          {"foo": 20, "bar": 200},
          {"foo": 20, "bar": 300},
      ]
  
      dirs: Set[str] = set()
      with sweep:
          temp_dir = sweep.temp_dir
          assert temp_dir is not None
          multirun_cfg_path = Path(temp_dir) / "multirun.yaml"
          assert multirun_cfg_path.exists()
          multirun_cfg = OmegaConf.load(multirun_cfg_path)
          assert multirun_cfg.hydra.overrides.task == job_overrides
  
          assert sweep.returns is not None
          # expecting 3 batches of 2
          assert len(sweep.returns) == 3
          for batch in sweep.returns:
              assert len(batch) == 2
  
          flat = [rt for batch in sweep.returns for rt in batch]
          assert len(flat) == 6  # with a total of 6 jobs
          for idx, job_ret in enumerate(flat):
              assert job_ret.overrides == expected_overrides[idx]
              assert job_ret.cfg == expected_conf[idx]
              dirs.add(job_ret.working_dir)
              verify_dir_outputs(job_ret, job_ret.overrides)
      assert len(dirs) == 6
  
imports: import copy
  import os
  import re
  from pathlib import Path
  from typing import Any, Callable, List, Optional, Set
  from omegaconf import DictConfig, OmegaConf
  from pytest import mark, param, raises
  from hydra import TaskFunction
  from hydra.errors import HydraException
  from hydra.test_utils.test_utils import TSweepRunner, integration_test, verify_dir_outputs
label_desc: Use image node_id 1 for calling the BatchedSweeperTestSuite obj's underlying member method code with example usage: obj.test_sweep_2_jobs_2_batches(hydra_sweep_runner, launcher_name, overrides, tmpdir) without return types