code: def _convert_args(args, curr_pos, cmd):
      """Converts given args to relative values."""
      # NOTE: glyphs only use a very small subset of commands (L, C, M, and Z -- I
      # believe). So I'm not handling A and H for now.
      if cmd in "AH":
          raise NotImplementedError(
              "These commands have >6 args (not supported)."
          )
  
      new_args = []
      for i, arg in enumerate(args):
          x_or_y = i % 2
          if cmd == "H":
              x_or_y = (i + 1) % 2
          new_args.append(str(float(arg) - curr_pos[x_or_y]))
  
      return new_args
  
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 10 for calling a global function with example usage: _convert_args(args, curr_pos, cmd) and returns: new_args