Mongo.ReadPreference.add_read_preference

You're seeing just the function add_read_preference, go back to Mongo.ReadPreference module for more information.
Link to this function

add_read_preference(cmd, opts)

View Source

Add read preference to the cmd