def has_errors(self, thing):
        if isinstance(thing, State):
            if thing.id in self.errors['states']:
                return self.errors['states'][thing.id]
            else:
                return []
        elif isinstance(thing, Transition):
            if thing.id in self.errors['transitions']:
                return self.errors['transitions'][thing.id]
            else:
                return []
        else:
            return []
Utility method to quickly get a list of errors associated with the
dataset/ETHPy150Open ntoll/workflow/workflow/models.py/Workflow.has_errors