def find_indices_vi(names, x_names):
    """Find indices that correspond to names and return list."""
    x_names = list(x_names)
    if isinstance(names, str):
        names = [names]
    indices = []
    for name in names:
        indices_t = x_names.index(name)
        indices.append(indices_t)
    return indices