def create_sink(teams=None, default_team=None, tags=None):
    """Helper function to create an OpsGenie sink with customizable parameters."""
    config = OpsGenieSinkParams(
        name="sink",
        api_key="test-key",
        teams=teams or [],
        default_team=default_team,
        tags=tags or [],
    )
    return OpsGenieSink(
        OpsGenieSinkConfigWrapper(opsgenie_sink=config),
        MagicMock(),
    )
Helper function to create an OpsGenie sink with customizable parameters.
tests/test_opsgenie_sink.py