code: def test_combiner_run():
      tmpdir = new_temp_file()
      samples = all_samples[:5]
  
      input_paths = [
          resource(
              os.path.join("gvcfs", "1kg_chr22", f"{s}.hg38.g.vcf.gz")
          )
          for s in samples
      ]
      final_paths_individual = [
          os.path.join(tmpdir, f"sample_{s}") for s in samples
      ]
      final_path_1 = os.path.join(tmpdir, "final1.vds")
      final_path_2 = os.path.join(tmpdir, "final2.vds")
  
      parts = hl.eval(
          [
              hl.parse_locus_interval(
                  "chr22:start-end", reference_genome="GRCh38"
              )
          ]
      )
  
      for input_gvcf, path in zip(
          input_paths[:2], final_paths_individual[:2]
      ):
          combiner = hl.vds.new_combiner(
              output_path=path,
              intervals=parts,
              temp_path=tmpdir,
              gvcf_paths=[input_gvcf],
              reference_genome="GRCh38",
          )
          combiner.run()
  
      combiner = hl.vds.new_combiner(
          output_path=final_path_1,
          intervals=parts,
          temp_path=tmpdir,
          gvcf_paths=input_paths[2:],
          vds_paths=final_paths_individual[:2],
          reference_genome="GRCh38",
          branch_factor=2,
          batch_size=2,
      )
      combiner.run()
  
      combiner2 = hl.vds.new_combiner(
          output_path=final_path_2,
          intervals=parts,
          temp_path=tmpdir,
          gvcf_paths=input_paths,
          reference_genome="GRCh38",
          branch_factor=2,
          batch_size=2,
      )
      combiner2.run()
  
      assert hl.vds.read_vds(final_path_1)._same(
          hl.vds.read_vds(final_path_2)
      )
  
file_path: hail/hail/python/test/hail/vds/test_combiner.py
imports: import os
  import pytest
  import hail
  from hail.utils.java import Env
  from hail.utils.misc import new_temp_file
  from hail.vds.combiner import combine_variant_datasets, new_combiner, load_combiner, transform_gvcf
  from hail.vds.combiner.combine import defined_entry_fields
  from ..helpers import resource, skip_when_service_backend, test_timeout, qobtest
label_desc: Use image node_id 5 for calling a global function with example usage: test_combiner_run() without return types