class_docstr: Utility class to facilitate API queries and state management of
  session data.
docstr: Prepares the healthcheck and resource urls from the base_urls
docstr_tok: ["Prepares","the","healthcheck","and","resource","urls","from","the","base_urls"]
code: def prepare_connection_data(self):
      """Prepares the healthcheck and resource urls from the base_urls"""
  
      self.healthcheck_urls = [
          f"{base_url}/_cluster/health" for base_url in self.base_urls
      ]
      self.request_urls = []
      for base_url in self.base_urls:
          if self.doc_type is None:
              request_url = f"{base_url}/{self.index}/_search?scroll=1m"
          else:
              request_url = "{}/{}/{}/_search?scroll=1m".format(
                  base_url, self.index, self.doc_type
              )
          self.request_urls.append(request_url)
  
      self.headers = ["Content-Type=application/json"]
      if self.headers_dict is not None:
          if isinstance(self.headers_dict, dict):
              for key, value in self.headers_dict.items():
                  if key.lower() == "content-type":
                      continue
                  self.headers.append(f"{key}={value}")
          else:
              raise ValueError(
                  "Headers should be a dict of key:value pairs. Got: ",
                  self.headers,
              )
  
file_path: io/tensorflow_io/python/experimental/elasticsearch_dataset_ops.py
imports: from urllib.parse import urlparse
  import tensorflow
  from tensorflow_io.python.ops import core_ops
  from tensorflow_io.python.experimental import serialization_ops
label_desc: Use image node_id 3 for calling the _ElasticsearchHandler obj's underlying member method code with example usage: obj.prepare_connection_data() without return types