code: def test_dict_from_expr():
      assert dict_from_expr(Eq(x, 1)) == (
          {(0,): -Integer(1), (1,): Integer(1)},
          (x,),
      )
      raises(PolynomialError, lambda: dict_from_expr(A * B - B * A))
      raises(PolynomialError, lambda: dict_from_expr(S.true))
  
imports: from sympy.core.mul import Mul
  from sympy.core.numbers import Integer, pi
  from sympy.core.relational import Eq
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.functions.elementary.exponential import exp
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.integrals.integrals import Integral
  from sympy.testing.pytest import raises
  from sympy.polys.polyutils import _nsort, _sort_gens, _unify_gens, _analyze_gens, _sort_factors, parallel_dict_from_expr, dict_from_expr
  from sympy.polys.polyerrors import PolynomialError
  from sympy.polys.domains import ZZ
label_desc: Use image node_id 11 for calling a global function with example usage: test_dict_from_expr() without return types