@staticmethod
    def user_attribute(obj, attr):
        if attr in obj.list_inputs() or \
           obj.list_outputs() in attr or \
           attr in ('parent', 'name'):
            return True
        return False
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_distsim.py/Protector.user_attribute/swapped operands of `in`