def METHOD_NAME():
    # opensearch doesn't play well with xpack env vars
    compose_file = '{}-docker-compose.yaml'.format(ELASTIC_FLAVOR)
    compose_file = os.path.join(HERE, 'compose', compose_file)
    with docker_run(
        compose_file=compose_file,
        conditions=[
            WaitFor(ping_elastic, attempts=100),
            WaitFor(index_starts_with_dot, attempts=100),
            WaitFor(create_slm, attempts=5),
        ],
        attempts=2,
        attempts_wait=10,
    ):
        yield INSTANCE