code: def lookup(code, _cache={}):
      """Lookup an error code or class code and return its symbolic name.
  
      Raise `KeyError` if the code is not found.
      """
      if _cache:
          return _cache[code]
  
      # Generate the lookup map at first usage.
      tmp = {}
      for k, v in globals().items():
          if isinstance(v, str) and len(v) in (2, 5):
              # Strip trailing underscore used to disambiguate duplicate values
              tmp[v] = k.rstrip("_")
  
      assert tmp
  
      # Atomic update, to avoid race condition on import (bug #382)
      _cache.update(tmp)
  
      return _cache[code]
  
label_desc: Use image node_id 1 for calling a global function with example usage: lookup(code, _cache) and returns: _cache, _cache