deftest_get_file_logger(self):"""Test get_file_logger function."""withtempfile.TemporaryDirectory()astmpdir:log_file=Path(tmpdir)/"test.log"logger=log.get_file_logger(name="test_file_logger",fname=str(log_file.with_suffix("")))assertisinstance(logger,logging.Logger)assertlogger.name=="test_file_logger"# Test that we can log somethinglogger.info("Test message")# Check that the file was createdassertlog_file.exists()