code: def test_output_unpack(self, app):
      def make_empty_response():
          return {"foo": "bar"}
  
      api = restplus.Api(app)
  
      with app.test_request_context("/foo"):
          wrapper = api.output(make_empty_response)
          resp = wrapper()
          assert resp.status_code == 200
          assert resp.data.decode() == '{"foo": "bar"}\n'
  
imports: from __future__ import unicode_literals
  import flask
  import pytest
  import six
  from json import dumps, JSONEncoder
  from flask import Blueprint, redirect, views
  from werkzeug.exceptions import HTTPException, Unauthorized, BadRequest
  import flask_restplus
label_desc: Use image node_id 23 for calling the APITest obj's underlying member method code with example usage: obj.test_output_unpack(app) and returns: dict