code: def g_ascent(model):
      g_ascent = GradientAscent(model)
      g_ascent.img_size = 64  # to reduce test time
      return g_ascent
  
imports: import inspect
  import pytest
  from os import path
  import numpy
  import torchvision.models
  from flashtorch.activmax import GradientAscent
  from flashtorch.utils import apply_transforms
label_desc: Use image node_id 4 for calling a global function with example usage: g_ascent(model) and returns: g_ascent