code: def test_select_jobs(batch):
      b = batch
      for i in range(3):
          b.new_job(name=f"foo{i}")
      assert len(b.select_jobs("foo")) == 3
  
imports: from typing import AsyncIterator
  import os
  import pytest
  import subprocess
  import tempfile
  from hailtop import pip_version
  from hailtop.batch import Batch, LocalBackend, ResourceGroup
  from hailtop.batch.resource import JobResourceFile
  from hailtop.batch.utils import concatenate
label_desc: Use image node_id 19 for calling a global function with example usage: test_select_jobs(batch) without return types