code: def transfer_filename(name):
      illegal_char = [
          "\\",
          "/",
          "?",
          "*",
          "$",
          "!",
          "&",
          "'",
          '"',
          "|",
          ";",
          ".",
      ]
      legal_name = ""
      for char in name:
          if char == ":":
              legal_name += "-"
          elif char == "<":
              legal_name += "("
          elif char == ">":
              legal_name += ")"
          elif char == " ":
              continue
          elif char in illegal_char:
              continue
          else:
              legal_name += char
      return legal_name
  
imports: import os
  import sys
  import xml.etree.ElementTree
label_desc: Use image node_id 1 for calling a global function with example usage: transfer_filename(name) and returns: legal_name