code: def test_add_extension_input_resource_file(batch):
      input_file1 = "/tmp/data/example1.txt.bgz.foo"
      b = batch
      in1 = b.read_input(input_file1)
      assert in1._value
      assert in1._value.endswith(".txt.bgz.foo")
  
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 22 for calling a global function with example usage: test_add_extension_input_resource_file(batch) without return types