def file_to_dataset(file):
    """Example function to derive datasets from file names"""
    if 'ZJet' in file:
        return 'Z'
    elif 'WJet' in file:
        return 'W'
    elif 'HToInvisible' in file:
        return 'Hinv'
