human
Splitting a string based on a certain set of words
assistant
Here is some code to split string 'sad_pandas_and_happy_cats_for_people' based on string 'and', 'or' or 'for'

re.split('_(?:for|or|and)_', 'sad_pandas_and_happy_cats_for_people')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.