code: def serialize(template, options=SerializerOptions()):
      
      context = SerializerContext(options)
      context.serialize(flatten(template))
      return context.output
docs: Serialize the provided template according to the language
      specifications.