code: def test_var():
      ns = {"var": var, "raises": raises}
      eval("var('a')", ns)
      assert ns["a"] == Symbol("a")
  
      eval("var('b bb cc zz _x')", ns)
      assert ns["b"] == Symbol("b")
      assert ns["bb"] == Symbol("bb")
      assert ns["cc"] == Symbol("cc")
      assert ns["zz"] == Symbol("zz")
      assert ns["_x"] == Symbol("_x")
  
      v = eval("var(['d', 'e', 'fg'])", ns)
      assert ns["d"] == Symbol("d")
      assert ns["e"] == Symbol("e")
      assert ns["fg"] == Symbol("fg")
  
      # check return value
      assert v != ["d", "e", "fg"]
      assert v == [Symbol("d"), Symbol("e"), Symbol("fg")]
  
file_path: sympy/sympy/core/tests/test_var.py
imports: from sympy.core.function import Function, FunctionClass
  from sympy.core.symbol import Symbol, var
  from sympy.testing.pytest import raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_var() without return types