code: def failure_message_from_response(response):
      change_reason = response["SomeKey"].get("StateChangeReason")
      if change_reason:
          return (
              f"for code: {change_reason.get('Code', EMPTY_CODE)} "
              f"with message {change_reason.get('Message', 'Unknown')}"
          )
      return None
  
file_path: airflow/tests/providers/amazon/aws/sensors/test_emr_base.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.amazon.aws.sensors.emr import EmrBaseSensor
label_desc: Use image node_id 4 for calling the EmrBaseSensorSubclass obj's underlying member method code with example usage: obj.failure_message_from_response(response) and returns: None, str, change_reason, str, change_reason