code: def use_elasticsearch_hook():
      """
      Use ElasticSearchPythonHook to print results from a local Elasticsearch
      """
      es_hosts = ["http://localhost:9200"]
      es_hook = ElasticsearchPythonHook(hosts=es_hosts)
      query = {"query": {"match_all": {}}}
      result = es_hook.search(query=query)
      print(result)
      return True
  
file_path: airflow/tests/system/providers/elasticsearch/example_elasticsearch_query.py
imports: from __future__ import annotations
  import os
  from datetime import datetime
  from airflow import models
  from airflow.decorators import task
  from airflow.operators.python import PythonOperator
  from airflow.providers.elasticsearch.hooks.elasticsearch import ElasticsearchPythonHook, ElasticsearchSQLHook
  from tests.system.utils import get_test_run
label_desc: Use image node_id 2 for calling a global function with example usage: use_elasticsearch_hook() and returns: True