def parse_file_or_list(arg):
    if not arg:
        return []
    if isinstance(arg, (list, tuple, set)):
        return arg
    if arg not in ',' and os.path.isfile(arg):
        return [e.strip() for e in open(arg).readlines()]
    return [e.strip() for e in arg.split(',')]
dataset/ETHPy150Open django-extensions/django-extensions/django_extensions/management/modelviz.py/parse_file_or_list/swapped operands of `not in`