code: def rangeexpand(txt):
      lst = []
      for r in txt.split(","):
          if "-" in r[1:]:
              r0, r1 = r[1:].split("-", 1)
              lst += range(int(r[0] + r0), int(r1) + 1)
          else:
              lst.append(int(r))
      return lst
  
label_desc: Use image node_id 1 for calling a global function with example usage: rangeexpand(txt) and returns: lst