Add **test** for the `PyFunction_GetAnnotations` function. <!-- gh-linked-prs --> ### Linked PRs * gh-144630 * gh-144670 <!-- /gh-linked-prs -->