What is the best way to exit a function in Python?

What is the best way to exit a function in Python?

More to explore

Based on this image's title: “What is the best way to exit a function in Python?