code: def test_print_Symbol():
      x, y = symbols("x, if")
  
      p = setup_test_printer()
      assert p._print(x) == "x"
      assert p._print(y) == "if"
  
      p.reserved_words.update(["if"])
      assert p._print(y) == "if_"
  
      p = setup_test_printer(error_on_reserved=True)
      p.reserved_words.update(["if"])
      with raises(ValueError):
          p._print(y)
  
      p = setup_test_printer(reserved_word_suffix="_He_Man")
      p.reserved_words.update(["if"])
      assert p._print(y) == "if_He_Man"
  
file_path: sympy/sympy/printing/tests/test_codeprinter.py
imports: from sympy.printing.codeprinter import CodePrinter, PrintMethodNotImplementedError
  from sympy.core import symbols
  from sympy.core.symbol import Dummy
  from sympy.testing.pytest import raises
label_desc: Use image node_id 3 for calling a global function with example usage: test_print_Symbol() without return types