code: def dotprodsimp(x):
      old = _dotprodsimp_state.state
  
      try:
          _dotprodsimp_state.state = x
          yield
      finally:
          _dotprodsimp_state.state = old
  
file_path: sympy/sympy/matrices/utilities.py
imports: from contextlib import contextmanager
  from threading import local
  from sympy.core.function import expand_mul
label_desc: Use image node_id 1 for calling a global function with example usage: dotprodsimp(x) without return types