Plone 5.2 get permission from code

We have defined a custom permission in xml in a permissions.xml file. It works as expected.

Now we need to check inside the code of an plone.app.contentmenu.menu.py override against that permission. But we cannot import the permission since it is defined in zcml.

I looked inside Products/CMFCore/permissions.py:

...
security.declarePublic('AccessContentsInformation')  # NOQA: flake8: D001                                                                                                           
AccessContentsInformation = Permissions.access_contents_information

security.declarePublic('ChangePermissions')  # NOQA: flake8: D001                                                                                                                   
ChangePermissions = Permissions.change_permissions
...

So which statements do i need to define the permission additonally in a *.py file, while keeping the definition in zcml ? So that both match and work together ?

Thank you.

With using plone.api-functions i could solve the issue.