def get_modality(cfg):
    """
    Helper function to intialize list of modalities

    Args
    ----------
    cfg: dict
        Dictionary of config parameters
    """

    modality = []

    if cfg.data.rgb.enable:
        modality.append("RGB")
    if cfg.data.flow.enable:
        modality.append("Flow")
    if cfg.data.audio.enable:
        modality.append("Audio")

    return modality