code: def tag2num(n):
      try:
          return int(n)
      except ValueError:
          n = (n + "    ")[:4]
          return struct.unpack(">L", n.encode("ascii"))[0]
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/grUtils.py
imports: import struct, warnings
label_desc: Use image node_id 7 for calling a global function with example usage: tag2num(n) and returns: int, struct