code: def _test_examples(in_filename, out_filename, test_name=""):
      in_file_path = os.path.join(
          FILE_DIR, "autolev", "test-examples", in_filename
      )
      correct_file_path = os.path.join(
          FILE_DIR, "autolev", "test-examples", out_filename
      )
      with open(in_file_path) as f:
          generated_code = parse_autolev(f, include_numeric=True)
  
      with open(correct_file_path) as f:
          for idx, line1 in enumerate(f):
              if line1.startswith("#"):
                  break
              try:
                  line2 = generated_code.split("\n")[idx]
                  assert line1.rstrip() == line2.rstrip()
              except Exception:
                  msg = "mismatch in " + test_name + " in line no: {0}"
                  raise AssertionError(msg.format(idx + 1))
  
file_path: sympy/sympy/parsing/tests/test_autolev.py
imports: import os
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.external import import_module
  from sympy.testing.pytest import skip
  from sympy.parsing.autolev import parse_autolev
label_desc: Use image node_id 1 for calling a global function with example usage: _test_examples(in_filename, out_filename, test_name) without return types