code: def test_populate_data(record):
      """Populate the index with data"""
  
      put_item_url = f"{NODE}/{INDEX}/{DOC_TYPE}"
      data = {}
      for idx, attr in enumerate(ATTRS):
          data[attr] = record[idx]
  
      res = requests.post(put_item_url, json=data, headers=HEADERS)
  
      # The 201 status code indicates the documents have been properly indexed
      assert res.status_code == 201
  
      # allow the cluster to index in the background.
      time.sleep(1)
  
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 3 for calling a global function with example usage: test_populate_data(record) without return types