code: def toImage(net_output):
      img = (
          net_output.squeeze(0).transpose((1, 2, 0)).numpy()
      )  # [1,c,h,w]->[h,w,c]
      img = (img * 255.0).clip(0, 255)
      img = np.uint8(img)
      img = Image.fromarray(img, mode="RGB")
      return img
  
imports: import argparse
  import os
  import sys
  from pathlib import Path
  import numpy
  import paddle
  import paddle.vision.transforms
  import ppgan.faceutils
  from paddle.utils.download import get_weights_path_from_url
  from PIL import Image
  from ppgan.models.builder import build_model
  from ppgan.utils.config import get_config
  from ppgan.utils.filesystem import load
  from ppgan.utils.options import parse_args
  from ppgan.utils.preprocess import *
label_desc: Use image node_id 1 for calling a global function with example usage: toImage(net_output) and returns: img