code: def add_missing_cmds(path, remove_zs=False):
      """Adds missing cmd tags to the commands in the svg."""
      # For instance, the command 'a' takes 7 arguments, but some SVGs declare:
      #   a 1 2 3 4 5 6 7 8 9 10 11 12 13 14
      # Which is 14 arguments. This function converts the above to the equivalent:
      #   a 1 2 3 4 5 6 7  a 8 9 10 11 12 13 14
      #
      # Note: if remove_zs is True, this also removes any occurences of z commands.
      new_path = []
      for cmd in path:
          if not remove_zs or cmd[0] not in "Zz":
              for new_cmd in add_missing_cmd(cmd):
                  new_path.append(new_cmd)
      return new_path
  
imports: import io
  import numpy
  from PIL import Image
  from six.moves import zip_longest
  from skimage import draw
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling a global function with example usage: add_missing_cmds(path, remove_zs) and returns: new_path