code: def get_npm_packages():
      """Returns `npm ls -g --depth=0` output."""
  
      grep_cmd = r'grep "newman\|markdown-link-check"'
      out = run_and_read_all("npm ls -g --depth=0 | " + grep_cmd)
      if out == "N/A":
          return "**Warning: newman, newman-reporter-html markdown-link-check not installed..."
      return out
  
imports: import locale
  import os
  import re
  import subprocess
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: get_npm_packages() and returns: out, str