code: def check_output(cls, cmd, **kwargs):
      executable = cls.get_executable()
      if ON_WINDOWS and executable:
          cmd = f'"{executable}" {cls._win_command_prefix} {argvquote(cmd)}'
          return sp.check_output(
              cmd, shell=False, executable=executable, **kwargs
          )
      else:
          return sp.check_output(
              cmd, shell=True, executable=executable, **kwargs
          )
  
imports: import _io
  import sys
  import os
  import subprocess
  import inspect
  import shutil
  import stat
  import tempfile
  import threading
  from snakemake.utils import format, argvquote, cmd_exe_quote
  from snakemake.common import ON_WINDOWS, RULEFUNC_CONTEXT_MARKER
  from snakemake.logging import logger
  from snakemake.deployment import singularity
  from snakemake.deployment.conda import Conda
  from snakemake.exceptions import WorkflowError
label_desc: Use image node_id 2 for calling the shell obj's underlying member method code with example usage: obj.check_output(cls, cmd) and returns: sp, sp