code: def _GetStatus(self, two_factor=False):
      
      params = ['status']
      if two_factor:
        params += ['--twofactor']
      retcode = self._RunOsLoginControl(params)
      if retcode is None:
        if self.oslogin_installed:
          self.logger.warning('OS Login not installed.')
          self.oslogin_installed = False
        return None
  
      # Prevent log spam when OS Login is not installed.
      self.oslogin_installed = True
      if not os.path.exists(constants.OSLOGIN_NSS_CACHE):
        return False
      return not retcode
docs: Check whether OS Login is installed.
  
      Args:
        two_factor: bool, True if two factor should be enabled.
  
      Returns:
        bool, True if OS Login is installed.