code: def linsolve_dict(eq, syms):
      """
      Get the output of linsolve as a dict
      """
      # Convert tuple type return value of linsolve
      # to a dictionary for ease of use
      sol = linsolve(eq, syms)
      if not sol:
          return {}
      return dict(zip(syms, list(sol)[0]))
  
imports: from itertools import product
  from sympy.core import S
  from sympy.core.add import Add
  from sympy.core.numbers import oo, Float
  from sympy.core.function import count_ops
  from sympy.core.relational import Eq
  from sympy.core.symbol import symbols, Symbol, Dummy
  from sympy.functions import sqrt, exp
  from sympy.functions.elementary.complexes import sign
  from sympy.integrals.integrals import Integral
  from sympy.polys.domains import ZZ
  from sympy.polys.polytools import Poly
  from sympy.polys.polyroots import roots
  from sympy.solvers.solveset import linsolve
label_desc: Use image node_id 4 for calling a global function with example usage: linsolve_dict(eq, syms) and returns: dict, dict