code: def print_cmd(cmd, dry=False):
      if isinstance(cmd, str):  # for shell=True
          pass
      else:
          cmd = " ".join(shlex.quote(arg) for arg in cmd)
      print(colorize(("CMD: " if not dry else "DRY: ") + cmd))
  
file_path: baselines/baselines/common/console_util.py
imports: from __future__ import print_function
  from contextlib import contextmanager
  import numpy
  import time
  import shlex
  import subprocess
label_desc: Use image node_id 4 for calling a global function with example usage: print_cmd(cmd, dry) without return types