code: def tensorflow_simple_subclassing(request: Any) -> ModelAndData:
      import tensorflow as tf
  
      class Model(tf.keras.Model):  # type: ignore
          def __init__(self) -> None:
              super().__init__()
              self.pool = tf.keras.layers.GlobalAveragePooling2D()
  
          def call(self, x: tf.Tensor) -> tf.Tensor:  # type: ignore
              x = self.pool(x)
              return x
  
      model = Model()
      bounds = (0, 1)
      fmodel = fbn.TensorFlowModel(model, bounds=bounds)
  
      x, _ = fbn.samples(fmodel, dataset="cifar10", batchsize=8)
      x = ep.astensor(x)
      y = fmodel(x).argmax(axis=-1)
      return fmodel, x, y
  
imports: from typing import Optional, Callable, Tuple, Dict, Any, List, NamedTuple
  import functools
  import pytest
  import eagerpy
  import foolbox
  import foolbox
label_desc: Use image node_id 17 for calling a global function with example usage: tensorflow_simple_subclassing(request) and returns: fmodel,  x,  y, x