@staticmethod
    def from_valid_json(json_dic, *args):
        floor_id = json_dic['floor_id']
        curse = json_dic['curse']
        if (floor_id not in Floor.__floor_id_to_label or
                curse < Curse.No_Curse or
                curse > Curse.Labyrinth):
            logging.getLogger("tracker").error("ERROR: Invalid foor_id or curse")
            return None
        return Floor(floor_id, curse)
Can filter by environment elements.
dataset/ETHPy150Open Hyphen-ated/RebirthItemTracker/src/game_objects/floor.py/Floor.from_valid_json--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/view/results/results/test_views.py/ResultsViewTest.test_filter_by_env_elements