code: def test_debug_output():
      env = os.environ.copy()
      env["SYMPY_DEBUG"] = "True"
      cmd = 'from sympy import *; x = Symbol("x"); print(integrate((1-cos(x))/x, x))'
      cmdline = [sys.executable, "-c", cmd]
      proc = Popen(cmdline, env=env, stdout=PIPE, stderr=PIPE)
      out, err = proc.communicate()
      out = out.decode("ascii")  # utf-8?
      err = err.decode("ascii")
      expected = "substituted: -x*(1 - cos(x)), u: 1/x, u_var: _u"
      assert expected in err, err
  
file_path: sympy/sympy/utilities/tests/test_misc.py
imports: from textwrap import dedent
  import sys
  from subprocess import Popen, PIPE
  import os
  from sympy.core.singleton import S
  from sympy.testing.pytest import raises, warns_deprecated_sympy, skip_under_pyodide
  from sympy.utilities.misc import translate, replace, ordinal, rawlines, strlines, as_int, find_executable
  from sympy.external import import_module
label_desc: Use image node_id 7 for calling a global function with example usage: test_debug_output() without return types