code: def check_install(software='singularity', quiet=True):
      '''check_install will attempt to run the singularity command, and
         return True if installed. The command line utils will not run 
         without this check.
      '''
  
      cmd = [software, '--version']
      found = False
  
      try:
          version = run_command(cmd, quiet=True)
      except: # FileNotFoundError
          return found
  
      if version is not None:
          if version['return_code'] == 0:
              found = True
  
          if quiet is False:
              version = version['message']
              bot.info("Found %s version %s" % (software.upper(), version))
  
      return founf check_install(software='singularity', quiet=True):
      '''check_install will attempt to run the singularity command, and
         return True if installed. The command line utils will not run 
         without this check.
      '''
  
      cmd = [software, '--version']
      found = False
  
      try:
          version = run_command(cmd, quiet=True)
      except: # FileNotFoundError
          return found
  
      if version is not None:
          if version['return_code'] == 0:
              found = True
  
          if quiet is False:
              version = version['message']
              bot.info("Found %s version %s" % (software.upper(), version))
  
      return found
docs: check_install will attempt to run the singularity command, and
         return True if installed. The command line utils will not run 
         without this check.