code: def write(self, file):
          
          render(
              self.template,
              file,
              benchmarks=self.benchmarks,
              hostname=socket.gethostname(),
          )
docs: Write YAML campaign template to the given open file