code: def encode_task_experimental(task):
      
      # First, clean the task:
      task = task.copy()
      if 'tags' in task:
          task['tags'] = ','.join(task['tags'])
      for k in task:
          task[k] = encode_task_value(k, task[k])
  
      # Then, format it as a string
      return [
          "%s:\"%s\"" % (k, v) if v else "%s:" % (k, )
          for k, v in sorted(task.items(), key=itemgetter(0))
      ]
docs: Convert a dict-like task to its string representation
          Used for adding a task via `task add`