def METHOD_NAME(n=10000, swap_after=5000, variance=0, bad_features=0, seed=0):
    random.seed(seed)
    np.random.seed(seed)
    envs = [[[0.8, 0.4], [0.2, 0.4]]]
    offset = 0
    animals = [
        "cat",
        "dog",
        "bird",
        "fish",
        "horse",
        "cow",
        "pig",
        "sheep",
        "goat",
        "chicken",
    ]
    colors = [
        "red",
        "green",
        "blue",
        "yellow",
        "orange",
        "purple",
        "black",
        "white",
        "brown",
        "gray",
    ]
    for i in range(1, n):
        person = random.randint(0, 1)
        chosen = [int(i) for i in np.random.permutation(2)]
        rewards = [envs[offset][person][chosen[0]], envs[offset][person][chosen[1]]]
        for i in range(len(rewards)):
            rewards[i] += np.random.normal(0.5, variance)
        current = {
            "c": {
                "shared": {"name": people_ccb[person]},
                "_multi": [{"a": {"topic": topics_ccb[i]}} for i in range(2)],
                "_slots": [{"_id": i} for i in range(2)],
            },
            "_outcomes": [
                {
                    "_label_cost": -min(rewards[i], 1),
                    "_a": chosen[i:],
                    "_p": [1.0 / (2 - i)] * (2 - i),
                }
                for i in range(2)
            ],
        }
        current["c"]["shared"][random.choice(animals)] = random.random()
        current["c"]["shared"][random.choice(animals)] = random.random()
        current["c"]["_multi"][random.choice(range(len(current["c"]["_multi"])))][
            random.choice(colors)
        ] = random.random()
        current["c"]["_multi"][random.choice(range(len(current["c"]["_multi"])))][
            random.choice(colors)
        ] = random.random()
        if random.random() < 0.50:
            current["c"]["_multi"].append(
                {random.choice(colors): {random.choice(animals): 0.6666}}
            )
        current["c"]["_slots"][random.choice(range(len(current["c"]["_slots"])))][
            random.choice(colors)
        ] = random.random()
        current["c"]["_slots"][random.choice(range(len(current["c"]["_slots"])))][
            random.choice(colors)
        ] = random.random()
        yield current