code: def test_async_predict_call_verify_exceptions_with_null_failure_path():
      sagemaker_session = (
          empty_sagemaker_session_with_null_failure_path()
      )
      predictor_async = AsyncPredictor(
          Predictor(ENDPOINT, sagemaker_session)
      )
  
      input_location = "s3://some-input-path"
  
      with pytest.raises(
          PollingTimeoutError,
          match=f"No result at {ASYNC_OUTPUT_LOCATION} after polling for "
          f"{DEFAULT_WAITER_CONFIG.delay*DEFAULT_WAITER_CONFIG.max_attempts}"
          f" seconds. Inference could still be running",
      ):
          predictor_async.predict(
              input_path=input_location,
              waiter_config=DEFAULT_WAITER_CONFIG,
          )
  
      assert (
          sagemaker_session.sagemaker_runtime_client.invoke_endpoint_async.called
      )
      assert sagemaker_session.s3_client.get_object.called
      assert (
          sagemaker_session.sagemaker_client.describe_endpoint.not_called
      )
      assert (
          sagemaker_session.sagemaker_client.describe_endpoint_config.not_called
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock
  from sagemaker.async_inference.waiter_config import WaiterConfig
  from sagemaker.predictor import Predictor
  from sagemaker.predictor_async import AsyncPredictor
  from sagemaker.exceptions import AsyncInferenceModelError, PollingTimeoutError
label_desc: Use image node_id 9 for calling a global function with example usage: test_async_predict_call_verify_exceptions_with_null_failure_path() without return types