code: def title2anchor(name):
      return re.sub(
          r"-+", "-", re.sub(r"[^a-zA-Z0-9]", "-", name.strip().lower())
      ).strip("-")
  
imports: import functools
  import re
  from os.path import basename, splitext
  import numpy
  import titlecase
  from weight_list import gen_weight_list
label_desc: Use image node_id 1 for calling a global function with example usage: title2anchor(name) and returns: re