code: def test_resource(self, app, mocker):
      resource = restplus.Resource()
      resource.get = mocker.Mock()
      with app.test_request_context("/foo"):
          resource.dispatch_request()
  
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 25 for calling the APITest obj's underlying member method code with example usage: obj.test_resource(app, mocker) without return types