code: def test__dict_from_expr_no_gens():
      assert dict_from_expr(Integer(17)) == ({(): Integer(17)}, ())
  
      assert dict_from_expr(x) == ({(1,): Integer(1)}, (x,))
      assert dict_from_expr(y) == ({(1,): Integer(1)}, (y,))
  
      assert dict_from_expr(x * y) == ({(1, 1): Integer(1)}, (x, y))
      assert dict_from_expr(x + y) == (
          {(1, 0): Integer(1), (0, 1): Integer(1)},
          (x, y),
      )
  
      assert dict_from_expr(sqrt(2)) == ({(1,): Integer(1)}, (sqrt(2),))
      assert dict_from_expr(sqrt(2), greedy=False) == (
          {(): sqrt(2)},
          (),
      )
  
      assert dict_from_expr(x * y, domain=ZZ[x]) == ({(1,): x}, (y,))
      assert dict_from_expr(x * y, domain=ZZ[y]) == ({(1,): y}, (x,))
  
      assert dict_from_expr(
          3 * sqrt(2) * pi * x * y, extension=None
      ) == ({(1, 1, 1, 1): 3}, (x, y, pi, sqrt(2)))
      assert dict_from_expr(
          3 * sqrt(2) * pi * x * y, extension=True
      ) == ({(1, 1, 1): 3 * sqrt(2)}, (x, y, pi))
  
      assert dict_from_expr(
          3 * sqrt(2) * pi * x * y, extension=True
      ) == ({(1, 1, 1): 3 * sqrt(2)}, (x, y, pi))
  
      f = (
          cos(x) * sin(x)
          + cos(x) * sin(y)
          + cos(y) * sin(x)
          + cos(y) * sin(y)
      )
  
      assert dict_from_expr(f) == (
          {
              (0, 1, 0, 1): 1,
              (0, 1, 1, 0): 1,
              (1, 0, 0, 1): 1,
              (1, 0, 1, 0): 1,
          },
          (cos(x), cos(y), sin(x), sin(y)),
      )
  
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 7 for calling a global function with example usage: test__dict_from_expr_no_gens() without return types