Trying to convert the following statement to Python, it doesn\'t work because I don\'t understand how the return value is passed in the nested Pine-script switch statement.<