def is_generalizable(scene1, scene2, relation_dataset):
    """Return true if scene1 can be generalized to scene2."""
    # Don't use the same scene as reference and initial scene, loss is always 0
    if scene1.name == scene2.name:
        return False
    # Check that at least one object can contain the other
    is_inside = relation_dataset.scene_to_label[scene1.name] in (1, 5, 6)
    inside_containers = ('bowl, boxbase', 'muesli', 'pot', 'cornellbox')
    if is_inside and not any([o in scene2.name for o in inside_containers]):
        return False
    return True