You have found that example on the newest version of the seaborn module, which is 0.9. From the “What’s new in each version” section:
New relational plots
Three completely new plotting functions have been added: relplot(),
scatterplot(), and lineplot()
So, you need to update your seaborn to the latest version to use these plotting functions.