code: def is_program_installed(basename):
      
      for path in os.environ["PATH"].split(os.pathsep):
          abspath = osp.join(path, basename)
          if osp.isfile(abspath):
              return abspath
docs: Return program absolute path if installed in PATH.
  
      Otherwise, return None