code: def test_resource_group_get_all_mentioned(batch):
      b = batch
      j = b.new_job()
      j.declare_resource_group(
          foo={"bed": "{root}.bed", "bim": "{root}.bim"}
      )
      assert isinstance(j.foo, ResourceGroup)
      j.command(f"cat {j.foo.bed}")
      assert j.foo.bed in j._mentioned
      assert j.foo.bim not in j._mentioned
  
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 14 for calling a global function with example usage: test_resource_group_get_all_mentioned(batch) without return types