code: def get_psnr(inp, otp):
      mse = np.mean(
          np.square(inp.astype(np.float32) - otp.astype(np.float32))
      )
      psnr = 20.0 * np.log10(255.0) - 10.0 * np.log10(mse)
      return psnr
  
file_path: compression/models/hific/evaluate.py
imports: import argparse
  import collections
  import glob
  import itertools
  import os
  import sys
  import numpy
  from PIL import Image
  import tensorflow.compat.v1
  import tensorflow_compression
  from hific import configs
  from hific import helpers
  from hific import model
label_desc: Use image node_id 3 for calling a global function with example usage: get_psnr(inp, otp) and returns: psnr