def remove_entity(self, name):
entity_to_remove = None<EOL>for e in self.entities:<EOL><INDENT>if e.name == name:<EOL><INDENT>entity_to_remove = e<EOL><DEDENT><DEDENT>if entity_to_remove is not None:<EOL><INDENT>self.entities.remove(entity_to_remove)<EOL><DEDENT>
Remove an entity from the model.

:param name: The name of the entity to remove.