class_docstr: Utility class for mapping between class name and id.
class_docstr_tok: ["Utility","class","for","mapping","between","class","name","and","id","."]
code: def get_by_name(self, name: str) -> int:
      try:
          return self._class2id[name]
      except KeyError as e:
          if not self._lock:
              return self.add_name(name)
          else:
              raise e
  
file_path: icevision/icevision/core/class_map.py
imports: from icevision.imports import *
label_desc: Use image node_id 5 for calling the ClassMap obj's underlying member method code with example usage: obj.get_by_name(name) and returns: self, self