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