def METHOD_NAME(collection: SampleDesignSpaceExecutionCollection, sample_design_space_execution_dict, session):
    # Given
    session.set_response(sample_design_space_execution_dict)
    sample_design_space_execution_input = SampleDesignSpaceInput(
        n_candidates=10
    )
    # When
    actual_execution = collection.trigger(sample_design_space_execution_input)
    # Then
    assert str(actual_execution.uid) == sample_design_space_execution_dict["id"]
    expected_path = '/projects/{}/design-spaces/{}/sample'.format(
        collection.project_id, collection.design_space_id
    )
    assert session.last_call == FakeCall(
        method='POST',
        path=expected_path,
        json={
            'n_candidates': sample_design_space_execution_input.n_candidates,
        }
    )