code: def init_lpips(net_name, device):
      assert net_name in ["alex", "vgg"]
      import lpips
  
      print(f"init_lpips: lpips_{net_name}")
      return lpips.LPIPS(net=net_name, version="0.1").eval().to(device)
  
file_path: slimmerf/extra/compute_metrics.py
imports: import os, math
  import numpy
  import scipy.signal
  from typing import List, Optional
  from PIL import Image
  import os
  import torch
  import configargparse
label_desc: Use image node_id 1 for calling a global function with example usage: init_lpips(net_name, device) and returns: lpips