code: def check_output(command_args):
      """Wrapper for subprocess.checkoutput with logging of the error of the failed command"""
      import subprocess
      import logging
      from subprocess import CalledProcessError
  
      try:
          output = subprocess.check_output(
              command_args, stderr=subprocess.STDOUT
          )[
              :-1
          ]  # [:-1] removes the trailing \n
          return output
      except CalledProcessError as e:
          logging.warning("Failed call with Output: %s" % e.output)
          raise e
  
file_path: turicreate/scenario-tests/common/base.py
imports: import unittest
  import six
label_desc: Use image node_id 1 for calling a global function with example usage: check_output(command_args) and returns: output