code: def remove_entities(self, entity_ids):
          
          if len(entity_ids) == 0:
              return
          keep = np.ones(len(self.entities))
          keep[entity_ids] = False
          self.entities = self.entities[keep]
docs: Remove entities by index.
  
          Parameters
          -----------
          entity_ids : (n,) int
            Indexes of self.entities to remove