code: def get_line_width(text):
      text = unicodedata.normalize("NFC", text)
      return sum(
          char_width.get(unicodedata.east_asian_width(c), 1)
          for c in text
      )
  
imports: import sys, os, unicodedata
  import py
  from py.builtin import text, bytes
label_desc: Use image node_id 3 for calling a global function with example usage: get_line_width(text) and returns: sum