pub fn verify_file_header( bytes: &[u8], expected_magic: &[u8; 4], diagnostic_file_path: Option<&Path>, stream_tag: &str, ) -> Result<(), Box<dyn Error + Send + Sync>>