def basic_client():
es_connected = False<EOL>while not es_connected:<EOL><INDENT>try:<EOL><INDENT>ES = Elasticsearch(<EOL>hosts=[HOSTNAME]<EOL>)<EOL>es_connected = True<EOL><DEDENT>except TransportError as e:<EOL><INDENT>logging.info('<STR_LIT>', e)<EOL>time.sleep(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>return ES<EOL>
Returns an Elasticsearch basic client that is responsive
    to the environment variable ELASTICSEARCH_ENDPOINT