code: def _get_output(cmd):
      out = check_output(cmd)
      if isinstance(out, bytes):
          out = out.decode("utf8", "replace")
      return out
  
imports: import glob
  import json
  import os
  import sys
  import time
  import types
  from subprocess import Popen, check_call, check_output
  from unittest.mock import MagicMock, create_autospec, patch
  import pytest
  import zmq
  from ipykernel import iostream, kernelapp
  from ipykernel.ipkernel import IPythonKernel
  from IPython.core.profiledir import ProfileDir
  from tornado import ioloop
  from zmq.eventloop import zmqstream
  import ipyparallel
  import ipyparallel.engine.app
label_desc: Use image node_id 1 for calling a global function with example usage: _get_output(cmd) and returns: out