code: def _get_intermediate_simp_bool(default=False, dotprodsimp=None):
      """Same as ``_get_intermediate_simp`` but returns bools instead of functions
      by default."""
  
      return _get_intermediate_simp(default, False, True, dotprodsimp)
  
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 4 for calling a global function with example usage: _get_intermediate_simp_bool(default, dotprodsimp) and returns: _get_intermediate_simp