<s>[INST] def find_flags_in_text(text, flags):
    """
    This function finds all flags in a given text and returns them along with their corresponding indices.

    Parameters:
    text (str): The text in which to find the flags.
    flags (list): A list of flags to find in the text.

    Returns:
    dict: A dictionary with the flags as keys and a list of their indices as values.
    """[/INST]