code: def test_resolve_trial_component_fails(
      mock_retry, sagemaker_session, training_job_env
  ):
      mock_retry.side_effect = lambda func: retry_with_backoff(func, 2)
      client = sagemaker_session.sagemaker_client
      client.list_trial_components.side_effect = Exception(
          "Failed test"
      )
      environment = _environment._RunEnvironment.load()
      assert environment.get_trial_component(sagemaker_session) is None
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/experiments/test_environment.py
imports: from __future__ import absolute_import
  import json
  import os
  import shutil
  import tempfile
  import unittest.mock
  import pytest
  from sagemaker.experiments import _environment
  from sagemaker.experiments._environment import TRANSFORM_JOB_ARN_ENV, TRAINING_JOB_ARN_ENV
  from sagemaker.utils import retry_with_backoff
label_desc: Use image node_id 9 for calling a global function with example usage: test_resolve_trial_component_fails(mock_retry, sagemaker_session, training_job_env) without return types