code: def check_output(*args, **kwargs):
      """
      ## check_output
  
      Returns stdin output from subprocess module
      """
      # import libs
      import subprocess as sp
  
      # workaround for python bug: https://bugs.python.org/issue37380
      if platform.system() == "Windows":
          # see comment https://bugs.python.org/msg370334
          sp._cleanup = lambda: None
  
      # handle additional params
      retrieve_stderr = kwargs.pop("force_retrieve_stderr", False)
  
      # execute command in subprocess
      process = sp.Popen(
          stdout=sp.PIPE,
          stderr=sp.DEVNULL if not (retrieve_stderr) else sp.PIPE,
          *args,
          **kwargs,
      )
      output, stderr = process.communicate()
      retcode = process.poll()
  
      # handle return code
      if retcode and not (retrieve_stderr):
          cmd = kwargs.get("args")
          if cmd is None:
              cmd = args[0]
          error = sp.CalledProcessError(retcode, cmd)
          error.output = output
          raise error
  
      return output if not (retrieve_stderr) else stderr
  
imports: import os
  import re
  import sys
  import cv2
  import types
  import errno
  import stat
  import shutil
  import importlib
  import requests
  import numpy
  import logging
  import platform
  import socket
  from tqdm import tqdm
  from contextlib import closing
  from pathlib import Path
  from colorlog import ColoredFormatter
  from pkg_resources import parse_version
  from requests.adapters import HTTPAdapter, Retry
  from ..version import __version__
label_desc: Use image node_id 31 for calling a global function with example usage: check_output() and returns: unknown