code: def compare_torch_tf(torch_tensor, tf_tensor):
      """Compute the average absolute difference b/w torch and tf tensors"""
      return abs(
          torch_tensor.detach().numpy() - tf_tensor.numpy()
      ).mean()
  
imports: import numpy
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: compare_torch_tf(torch_tensor, tf_tensor) and returns: abs