code: def toimg(x):
      # x = np.transpose(x,(1,2,0))
      print(x.shape)
      img = (x + 1) * 127.5
      return Image.fromarray(np.array(img, dtype=np.uint8))
  
file_path: privacy/research/instahide_attack_2020/step_5_reconstruct.py
imports: import json
  import numpy
  import jax.numpy
  import jax
  import collections
  from PIL import Image
  import jax.example_libraries.optimizers
  import matplotlib.pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: toimg(x) and returns: Image