code: def get_subprocess_results(cmd):
      output = subprocess.check_output(cmd, shell=True)
      return output.decode("utf8")
  
imports: import os
  import pytest
  import subprocess
  from io import StringIO
  import sys
  from fastNLP.core.utils.cache_results import cache_results
  from fastNLP.envs.distributed import rank_zero_rm
label_desc: Use image node_id 1 for calling a global function with example usage: get_subprocess_results(cmd) and returns: output