code: def serialized(func):
      
  
      @wraps(func)
      def wrapper(*args, **kwargs):
          return '\n'.join(
              ' '.join(parts) if isinstance(parts, tuple) else parts
              for parts in func(*args, **kwargs)
          )
  
      return wrapper
docs: Write a serializer by yielding each line of output