code: def test__parallel_dict_from_expr_if_gens():
      assert parallel_dict_from_expr(
          [x + 2 * y + 3 * z, Integer(7)], gens=(x,)
      ) == (
          [{(1,): Integer(1), (0,): 2 * y + 3 * z}, {(0,): Integer(7)}],
          (x,),
      )
  
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 8 for calling a global function with example usage: test__parallel_dict_from_expr_if_gens() without return types