def check_if_character(character):
    all_characters = list(chain.from_iterable([CHARACTERS[k] for k in CHARACTERS]))
    return character in all_characters
dataset/ETHPy150Open VikParuchuri/simpsons-scripts/tasks/preprocess.py/check_if_character/original