fn log_file( py: Python<'_>, file_path: PathBuf, file_contents: Option<&[u8]>, entity_path_prefix: Option<String>, static_: bool, recording: Option<&PyRecordingStream>, ) -> PyResult<()>