(indices, datastore)
return [
        i for i in indices if datastore.client.indices.exists(index=i)]
Returns a list of valid indices.

    This function takes a list of indices, checks to see if they exist
    and then returns the list of indices that exist within the datastore.

    Args:
        indices (list): List of indices.
        datastore (OpenSearchDataStore): a data store object.

    Returns:
        list of indices that exist within the datastore.
Returns a list of valid indices.
Returns a list of valid indices .
def validate_indices(indices, datastore):
    """Returns a list of valid indices.

    This function takes a list of indices, checks to see if they exist
    and then returns the list of indices that exist within the datastore.

    Args:
        indices (list): List of indices.
        datastore (OpenSearchDataStore): a data store object.

    Returns:
        list of indices that exist within the datastore.
    """
    return [
        i for i in indices if datastore.client.indices.exists(index=i)]
def validate_indices ( indices , datastore ) : return [ i for i in indices if datastore . client . indices . exists ( index = i ) ]