code: def state_from_response(response):
      return response["SomeKey"]["State"]
  
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 3 for calling the EmrBaseSensorSubclass obj's underlying member method code with example usage: obj.state_from_response(response) and returns: response