Sure! Here's a more modular Python code snippet that takes a list of strings, splits them into randomly sized chunks of 5-10 strings, and rearranges the chunks in random order:
```python
import random

def getChunks(strings: list[str]) -> list[str]:
    chunks = []
    i = 0
    while i < len(strings):
        chunk_size = random.randint(5, 10)
        chunks.append(strings[i:i+chunk_size])
        i += chunk_size
    random.shuffle(chunks)
    return [string for chunk in chunks for string in chunk]
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence