code: def assert_eq(x, y, err_msg=""):
      x = _maybe_convert_to_numpy(x)
      y = _maybe_convert_to_numpy(y)
  
      if isinstance(x, np.ndarray):
          x = x.tolist()
      if isinstance(y, np.ndarray):
          y = y.tolist()
  
      assert x == y, f"{err_msg or 'assert_eq fail'}: {x} != {y}"
  
file_path: summarize-from-feedback/summarize_from_feedback/utils/assertions.py
imports: import numpy
  import numpy.testing
  import torch
  from summarize_from_feedback.utils.torch_utils import to_numpy
label_desc: Use image node_id 3 for calling a global function with example usage: assert_eq(x, y, err_msg) without return types