code: def has_npm(self):
      try:
          check_call(["npm", "--version"])
          return True
      except:
          return False
  
file_path: gmaps/setup.py
imports: from __future__ import print_function
  from setuptools import setup, find_packages, Command
  from setuptools.command.sdist import sdist
  from setuptools.command.build_py import build_py
  from setuptools.command.egg_info import egg_info
  from subprocess import check_call
  import os
  import sys
  import platform
  from distutils import log
label_desc: Use image node_id 3 for calling the NPM obj's underlying member method code with example usage: obj.has_npm() and returns: True, False