code: def save_image(filename, data):
      img = data.clone().clamp(0, 255).numpy()
      img = img.transpose(1, 2, 0).astype("uint8")
      img = Image.fromarray(img)
      img.save(filename)
  
imports: import argparse
  import os
  import sys
  import re
  import json
  import traceback
  from PIL import Image
  import torch
  from torchvision import transforms
  from azureml.core.model import Model
label_desc: Use image node_id 2 for calling a global function with example usage: save_image(filename, data) without return types