code: def peakmem_needless_nodes():
      N, M = 1000, 100
  
      def fun(x):
          for i in range(M):
              x = x + 1
          return np.sum(x)
  
      grad(fun)(np.zeros((N, N)))
  
label_desc: Use image node_id 1 for calling a global function with example usage: peakmem_needless_nodes() and returns: np