code: def test_poke_continues_for_http_500_with_extra_options_check_response_false(
      self,
      mock_session_send,
      create_task_of_operator,
  ):
      def resp_check(_):
          return False
  
      response = requests.Response()
      response.status_code = 500
      response.reason = "Internal Server Error"
      response._content = b"Internal Server Error"
      mock_session_send.return_value = response
  
      task = create_task_of_operator(
          HttpSensor,
          dag_id="http_sensor_poke_for_code_500",
          task_id="http_sensor_poke_for_code_500",
          http_conn_id="http_default",
          endpoint="",
          request_params={},
          method="HEAD",
          response_check=resp_check,
          extra_options={"check_response": False},
          timeout=5,
          poke_interval=1,
      )
  
      with pytest.raises(AirflowSensorTimeout):
          task.execute(context={})
  
imports: from __future__ import annotations
  from unittest import mock
  from unittest.mock import patch
  import pytest
  import requests
  from airflow.exceptions import AirflowException, AirflowSensorTimeout, AirflowSkipException
  from airflow.models.dag import DAG
  from airflow.providers.http.operators.http import HttpOperator
  from airflow.providers.http.sensors.http import HttpSensor
  from airflow.utils.timezone import datetime
label_desc: Use image node_id 3 for calling the TestHttpSensor obj's underlying member method code with example usage: obj.test_poke_continues_for_http_500_with_extra_options_check_response_false(mock_session_send, create_task_of_operator) and returns: False