code: def test_application_pooling(
      self, app, last_dim, _, image_data_format
  ):
      if app == nasnet.NASNetMobile and backend.backend() == "torch":
          self.skipTest(
              "NASNetMobile pretrained incorrect with torch backend."
          )
      self.skip_if_invalid_image_data_format_for_model(
          app, image_data_format
      )
      backend.set_image_data_format(image_data_format)
  
      model = app(weights=None, include_top=False, pooling="max")
      output_shape = list(model.outputs[0].shape)
      self.assertEqual(output_shape, [None, last_dim])
  
imports: import os
  import numpy
  import pytest
  from absl.testing import parameterized
  from keras import backend
  from keras import testing
  from keras.applications import convnext
  from keras.applications import densenet
  from keras.applications import efficientnet
  from keras.applications import efficientnet_v2
  from keras.applications import inception_resnet_v2
  from keras.applications import inception_v3
  from keras.applications import mobilenet
  from keras.applications import mobilenet_v2
  from keras.applications import mobilenet_v3
  from keras.applications import nasnet
  from keras.applications import resnet
  from keras.applications import resnet_v2
  from keras.applications import vgg16
  from keras.applications import vgg19
  from keras.applications import xception
  from keras.saving import serialization_lib
  from keras.utils import file_utils
  from keras.utils import image_utils
label_desc: Use image node_id 7 for calling the ApplicationsTest obj's underlying member method code with example usage: obj.test_application_pooling(app, last_dim, _, image_data_format) without return types