code: def test_no_exception_when_exiting_context(backend):
      def raise_value_error():
          raise ValueError("dead")
  
      with BatchPoolExecutor(
          backend=backend, project="hail-vdc", image=PYTHON_DILL_IMAGE
      ) as bpe:
          future = bpe.submit(raise_value_error)
      try:
          future.exception()
      except ValueError as exc:
          assert "ValueError: dead" in exc.args[0]
      else:
          assert False
  
imports: import asyncio
  import time
  import pytest
  from hailtop.batch import BatchPoolExecutor, ServiceBackend
  from hailtop.config import get_user_config
  from hailtop.utils import sync_sleep_before_try
  from hailtop.batch_client.client import BatchClient
label_desc: Use image node_id 16 for calling a global function with example usage: test_no_exception_when_exiting_context(backend) without return types