class_docstr: Works like a dictionary that automatically assign values for new keys.
code: def filter_ids(self, ids: List[int]) -> "IDMap":
      idmap = IDMap()
      for id in ids:
          name = self.get_id(id)
          idmap.id2name[id] = name
          idmap.name2id[name] = id
  
      return idmap
  
file_path: icevision/icevision/core/id_map.py
imports: from icevision.imports import *
label_desc: Use image node_id 4 for calling the IDMap obj's underlying member method code with example usage: obj.filter_ids(ids) and returns: idmap