code: def assert_fn_eq(actual, expected):
      assert actual.__name__ == expected.__name__
      assert actual.__doc__ == expected.__doc__
      assert actual.__module__ == expected.__module__
      assert actual.__code__.co_code == expected.__code__.co_code
  
file_path: funsor/test/test_syntax.py
imports: import operator
  import sys
  import pytest
  from funsor import ops
  from funsor.syntax import rewrite_ops
label_desc: Use image node_id 1 for calling a global function with example usage: assert_fn_eq(actual, expected) without return types