          print(f"Faceswap config written to: {self._config_file}")
          return fs_backend
  
  
  _FS_BACKEND = _Backend().backend
  
  
  def get_backend():
      """ Get the backend that Faceswap is currently configured to use.
  
 
</s> remove def get_backend():
 </s> add def get_backend() -> ValidBackends: </s> remove         fs_backend = self._backends[selection].lower()
 </s> add         fs_backend = cast(ValidBackends, self._backends[selection].lower()) </s> remove         return fs_backend.lower()
 </s> add         return fs_backend </s> remove     def _configure_backend(self):
 </s> add     def _configure_backend(self) -> ValidBackends: </s> remove             fs_backend = os.environ["FACESWAP_BACKEND"].lower()
 </s> add             fs_backend = cast(ValidBackends, os.environ["FACESWAP_BACKEND"].lower())
            assert fs_backend in get_args(ValidBackends), (
                f"Faceswap backend must be one of {get_args(ValidBackends)}")
_FS_BACKEND: ValidBackends = _Backend().backend
          print(f"Faceswap config written to: {self._config_file}")
          return fs_backend
  
  
_FS_BACKEND: ValidBackends = _Backend().backend
  
  
  def get_backend():
      """ Get the backend that Faceswap is currently configured to use.
  
keep keep keep keep replace keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py