I think that the beginning of this sentence should be: "The function ...". 

Also, a little bit of code to demonstrate might be nice. E.g: 
Replace all instances of 

    from dipy.reconst.odf import peaks_from_model 

in your code with: 

    from dipy.reconst.peaks import peaks_from_model