code: def test_marshal_nested_ordered(self):
      model = OrderedDict(
          [
              ("foo", fields.Raw),
              (
                  "fee",
                  fields.Nested(
                      {
                          "fye": fields.String,
                      }
                  ),
              ),
          ]
      )
  
      marshal_fields = {
          "foo": "bar",
          "bat": "baz",
          "fee": {"fye": "fum"},
      }
      expected = OrderedDict(
          [("foo", "bar"), ("fee", OrderedDict([("fye", "fum")]))]
      )
  
      output = marshal(marshal_fields, model, ordered=True)
  
      assert isinstance(output, OrderedDict)
      assert output == expected
      assert isinstance(output["fee"], OrderedDict)
  
imports: from __future__ import unicode_literals
  import pytest
  from flask_restplus import marshal, marshal_with, marshal_with_field, fields, Api, Resource
label_desc: Use image node_id 21 for calling the MarshallingTest obj's underlying member method code with example usage: obj.test_marshal_nested_ordered() without return types