code: def tag_string(tags):
      if len(tags) == 4:
          return (
              ".".join(str(i) for i in tags[:3]) + "-rc" + str(tags[3])
          )
      elif len(tags) == 3:
          return ".".join(str(i) for i in tags)
      else:
          raise ValueError(
              "malfomated tags %s" % ".".join(str(i) for i in tags)
          )
  
imports: import subprocess
  import re
  import argparse
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: tag_string(tags) and returns: unknown, str