def create_finding(labels=None, annotations=None):
    """Helper function to create a finding with customizable labels and annotations."""
    return Finding(
        title="Test Finding",
        description="Test Description",
        severity=FindingSeverity.HIGH,
        aggregation_key="test",
        subject=FindingSubject(
            name="test-pod",
            namespace="test-namespace",
            node="test-node",
            labels=labels or {},
            annotations=annotations or {},
        ),
    )
Helper function to create a finding with customizable labels and annotations.
tests/test_opsgenie_sink.py