docs: def set_command_result(result, unpicklable=False):
      """
      Serializes output as JSON and writes it to console output wrapped with special prefix and suffix
      :param result: Result to return
      :param unpicklable: If True adds JSON can be deserialized as real object.
                          When False will be deserialized as dictionary
      """
      # we do not need to serialize an empty response from the vCenter
      if result is None:
          return
  
      if isinstance(result, basestring):
          return result
  
      json = jsonpickle.encode(result, unpicklable=unpicklable)
      result_for_output = str(json)
      return result_for_output