      logger.debug("Returning: '%s'", path)
      return path
  
  
  def get_image_paths(directory: str, extension: Optional[str] = None) -> List[str]:
      """ Gets the image paths from a given directory.
  
      The function searches for files with the specified extension(s) in the given directory, and
      returns a list of their paths. If no extension is provided, the function will search for files
      with any of the following extensions: '.bmp', '.jpeg', '.jpg', '.png', '.tif', '.tiff'
 
</s> remove     def _split_lines(self, text: str, width: int) -> List[str]:
 </s> add     def _split_lines(self, text: str, width: int) -> list[str]: </s> remove def deprecation_warning(function: str, additional_info: Optional[str] = None) -> None:
 </s> add def deprecation_warning(function: str, additional_info: str | None = None) -> None: </s> remove     def file_list(self) -> List[str]:
 </s> add     def file_list(self) -> list[str]: </s> remove                          filter_files: Optional[List[str]],
                         nfilter_files: Optional[List[str]]) -> Tuple[List[str], List[str]]:
 </s> add                          filter_files: list[str] | None,
                         nfilter_files: list[str] | None) -> tuple[list[str], list[str]]: </s> remove     def _parse_configs(self, config_files: List[str]) -> str:
 </s> add     def _parse_configs(self, config_files: list[str]) -> str:
def get_image_paths(directory: str, extension: str | None = None) -> list[str]:
      logger.debug("Returning: '%s'", path)
      return path
  
  
def get_image_paths(directory: str, extension: str | None = None) -> list[str]:
      """ Gets the image paths from a given directory.
  
      The function searches for files with the specified extension(s) in the given directory, and
      returns a list of their paths. If no extension is provided, the function will search for files
      with any of the following extensions: '.bmp', '.jpeg', '.jpg', '.png', '.tif', '.tiff'
keep keep keep keep 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/utils.py