def get_str_indices(container, string):
    """Return the indices of ``string`` in a list or tuple``container``

    Args:
        container (list or tuple): container of strings
        string (str): the string to locate

    Returns:
        list
    """
    assert isinstance(container, (list, tuple))
    ind = []
    for i, s in enumerate(container):
        if string == s:
            ind.append(i)
    return ind