code: def encode_args(args, extra=False):
      
      if not args:
          return ''
  
      methodargs = ', '.join([encode(a) for a in args])
      if extra:
          methodargs += ', '
  
      return methodargs
docs: Encode a list of arguments