Parton--Hadron Duality in B Meson Decays