code: def test_elasticsearch_io_dataset_no_auth():
      """Test the functionality of the ElasticsearchIODataset when basic auth is
      required but the associated header is not passed.
      """
  
      try:
          dataset = (
              tfio.experimental.elasticsearch.ElasticsearchIODataset(
                  nodes=[NODE], index=INDEX, doc_type=DOC_TYPE
              )
          )
      except ConnectionError as e:
          assert str(
              e
          ) == "No healthy node available for the index: {}, please check the cluster config".format(
              INDEX
          )
  
file_path: io/tests/test_elasticsearch.py
imports: import time
  import json
  import pytest
  import socket
  import requests
  import tensorflow
  from tensorflow import feature_column
  from tensorflow.keras import layers
  import tensorflow_io
label_desc: Use image node_id 5 for calling a global function with example usage: test_elasticsearch_io_dataset_no_auth() without return types