def test_selection_config_from_dict__multiple_references() -> None:
    """Test that conversion is successful if the dictionary contains multiple references
    to the same object.
    """
    strategy = {"input": {"type": "EMBEDDINGS"}, "strategy": {"type": "DIVERSITY"}}
    cfg = {"strategies": [strategy, strategy]}
    selection_cfg = api_workflow_compute_worker.selection_config_from_dict(cfg)
    assert len(selection_cfg.strategies) == 2
    assert selection_cfg.strategies[0] == selection_cfg.strategies[1]
Test that conversion is successful if the dictionary contains multiple references
    to the same object.
    
tests/api_workflow/test_api_workflow_compute_worker.py