code: def make_max_flat(out):
      flat = F.adaptive_max_pool2d(
          out, output_size=1
      )  ##nn.AdaptiveMaxPool2d(1)(out)
      flat = flat.view(flat.size(0), -1)
      return flat
  
imports: import os
  import math
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 3 for calling a global function with example usage: make_max_flat(out) and returns: flat