def f(): deprecation_message('some_message')
def f(flag): if flag: deprecation_message('first message type') else: deprecation_message('second message type')