code: def convert(collection):
      # replace all variables by integers
      replacement_dict = {
          variable: f"{index}"
          for index, variable
          # 0 is reserved as line terminator
          in enumerate(collection.variables(), start=1)
      }
  
label_desc: Use image node_id 1 for calling a global function with example usage: convert(collection) without return types