code: def find_program(basename):
      """
      Find program in PATH and return absolute path
      Try adding .exe or .bat to basename on Windows platforms
      (return None if not found)
      """
      names = [basename]
      if os.name == "nt":
          # Windows platforms
          extensions = (".exe", ".bat", ".cmd", ".dll")
          if not basename.endswith(extensions):
              names = [basename + ext for ext in extensions] + [
                  basename
              ]
      for name in names:
          path = is_program_installed(name)
          if path:
              return path
  
imports: import glob
  import hashlib
  import os
  import os.path
  import platform
  import shutil
  import subprocess
  import sys
  import zipfile
  from base64 import urlsafe_b64encode
label_desc: Use image node_id 4 for calling a global function with example usage: find_program(basename) and returns: path