code: def output_xml(data, code, headers=None):
      """Makes a Flask response with a XML encoded body"""
      resp = make_response(dumps({"response": data}), code)
      resp.headers.extend(headers or {})
      return resp
  
imports: from simplexml import dumps
  from flask import make_response, Flask
  from flask_restplus import Api, Resource, fields
label_desc: Use image node_id 1 for calling a global function with example usage: output_xml(data, code, headers) and returns: resp