code: def _check_output_no_window(*args, **kwargs):
      # Avoid showing a cmd.exe window when running this
      # on Windows
      if os.name == "nt":
          creation_flag = 0x08000000  # CREATE_NO_WINDOW
      else:
          creation_flag = 0  # Default value
      return check_output(*args, creationflags=creation_flag, **kwargs)
  
file_path: sympy/sympy/printing/preview.py
imports: import os
  from os.path import join
  import shutil
  import tempfile
  from sympy.utilities.decorator import doctest_depends_on
  from sympy.utilities.misc import debug
  from .latex import latex
label_desc: Use image node_id 1 for calling a global function with example usage: _check_output_no_window() and returns: check_output