code: def lp_error(img1, img2, lp=2):
      return torch.mean((img1 - img2) ** lp)
  
file_path: DALI/docs/examples/use_cases/video_superres/model/model.py
imports: import time
  import scipy.misc
  import numpy
  from math import floor, log
  import torch
  import torch.nn
  from torch.nn import init
  from torch.autograd import Variable
  from torch.nn.functional import upsample
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: lp_error(img1, img2, lp) and returns: torch