code: def test_does_not_raise_when_correct_job_status():
      try:
          job = Mock()
          _check_job_status(
              job,
              {"TransformationJobStatus": "Stopped"},
              "TransformationJobStatus",
          )
      except sagemaker.exceptions.UnexpectedStatusException:
          pytest.fail(
              "UnexpectedStatusException was thrown while it should not"
          )
  
file_path: sagemaker-python-sdk/tests/unit/test_exception_on_bad_status.py
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, MagicMock
  import sagemaker
  from sagemaker.session import _check_job_status
label_desc: Use image node_id 4 for calling a global function with example usage: test_does_not_raise_when_correct_job_status() without return types