          if tf_ver > max_ver:
              msg = (f"The maximum supported Tensorflow is version {max_ver} but you have version "
                     f"{tf_ver} installed. Please downgrade Tensorflow.")
              self._handle_import_error(msg)
          if backend == "directml" and tf_ver != directml_ver:
              msg = (f"The supported Tensorflow version for DirectML cards is {directml_ver} but "
                     f"you have version {tf_ver} installed. Please install the correct version.")
              self._handle_import_error(msg)
          if backend == "rocm" and tf_ver != rocm_ver:
              msg = (f"The supported Tensorflow version for ROCm cards is {rocm_ver} but "
                     f"you have version {tf_ver} installed. Please install the correct version.")
              self._handle_import_error(msg)
          logger.debug("Installed Tensorflow Version: %s", tf_ver)
  
      @classmethod
      def _handle_import_error(cls, message: str) -> None:
          """ Display the error message to the console and wait for user input to dismiss it, if
 
</s> remove         backend = get_backend()
 </s> add  </s> remove                                        if not pkg[0].startswith("tensorflow-gpu")]
            tf_ver = f"tensorflow-gpu{tf_ver}"

            tf_ver = f"tensorflow-gpu{tf_ver}"
            self._required_packages.append(("tensorflow-gpu",
                                           next(parse_requirements(tf_ver)).specs))
 </s> add                                        if pkg[0] != "tensorflow"]
            tf_ver = f"tensorflow{tf_ver}"
            self._required_packages.append(("tensorflow", next(parse_requirements(tf_ver)).specs)) </s> remove             cuda_req = val[0]
            cudnn_req = val[1].split(".")
            if cuda_req == self._env.cuda_version and (cudnn_req[0] == cudnn_inst[0] and
                                                       cudnn_req[1] <= cudnn_inst[1]):
 </s> add             cuda_req = next(parse_requirements(f"cuda{val[0]}")).specs
            cudnn_req = next(parse_requirements(f"cudnn{val[1]}")).specs
            if (self._validate_spec(cuda_req, cuda_inst)
                    and self._validate_spec(cudnn_req, cudnn_inst)): </s> remove     def build_model(self, inputs: T.List[Tensor]) -> keras.models.Model:
 </s> add     def build_model(self, inputs: list[Tensor]) -> keras.models.Model: </s> remove         cudnn_inst = self._env.cudnn_version.split(".")
 </s> add         cuda_inst = self._env.cuda_version
        cudnn_inst = self._env.cudnn_version
        if len(cudnn_inst) == 1:  # Sometimes only major version is reported
            cudnn_inst = f"{cudnn_inst}.0"
          if tf_ver > max_ver:
              msg = (f"The maximum supported Tensorflow is version {max_ver} but you have version "
                     f"{tf_ver} installed. Please downgrade Tensorflow.")
              self._handle_import_error(msg)








          logger.debug("Installed Tensorflow Version: %s", tf_ver)
  
      @classmethod
      def _handle_import_error(cls, message: str) -> None:
          """ Display the error message to the console and wait for user input to dismiss it, if
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
lib/cli/launcher.py