code: def format_name(guide_name):
      index = None
      if re.match("^[0-9]+_", guide_name):
          index = int(guide_name[: guide_name.index("_")])
          guide_name = guide_name[guide_name.index("_") + 1 :]
      if guide_name.lower().endswith(".md"):
          guide_name = guide_name[:-3]
      pretty_guide_name = " ".join(
          [word[0].upper() + word[1:] for word in guide_name.split("-")]
      )
      return index, guide_name, pretty_guide_name
  
imports: import json
  import os
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: format_name(guide_name) and returns: index,  guide_name,  pretty_guide_name