code: def run_cmd(cmd, print_output=True):
      try:
          out = subprocess.check_output(
              cmd,
              stderr=subprocess.STDOUT,
              universal_newlines=True,
              shell=True,
          )
          if print_output:
              logger.info(f"command output:\n{out}")
          return out
      except subprocess.CalledProcessError as grepexc:
          logger.info(f"error executing command!:\n{cmd}")
          logger.info(grepexc.output)
  
file_path: fairseq/examples/emotion_conversion/preprocess/create_core_manifest.py
imports: from pathlib import Path
  import os
  import sys
  import subprocess
  import argparse
  from datetime import datetime
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: run_cmd(cmd, print_output) and returns: out