code: def check_error(output, k_model, input_np, epsilon=1e-5):
      pytorch_output = output.data.numpy()
      keras_output = k_model.predict(input_np)
  
      error = np.max(pytorch_output - keras_output)
      print("Error:", error)
  
      assert error < epsilon
      return error
  
file_path: pytorch2keras/tests/layers/activations/softmax.py
imports: import numpy
  import torch
  import torch.nn
  from torch.autograd import Variable
  from pytorch2keras.converter import pytorch_to_keras
label_desc: Use image node_id 1 for calling a global function with example usage: check_error(output, k_model, input_np, epsilon) and returns: error