code: def deregister_entity_from_group(self, entity, group):
          '''
          Removes entity from group
          '''
          if entity in self._entities:
              if entity in self._groups[group]:
                  self._groups[group].remove(entity)
          else:
              raise UnmanagedEntityError(entityf deregister_entity_from_group(self, entity, group):
          '''
          Removes entity from group
          '''
          if entity in self._entities:
              if entity in self._groups[group]:
                  self._groups[group].remove(entity)
          else:
              raise UnmanagedEntityError(entity)
docs: Removes entity from group