Function to detect if a post has restrictions

Is there a function or shortcode to determine if a post has restrictions? Note - This is to fit with some custom-built functionality – not looking for User Capability.

Looking for something like: S2Member-Post-Restricted(post_id). Where the answer would be 1 or 0 (for example.) Or the function could check for specific restriction levels: S2Member-Post-Restricted(post_id, level).

(My client has S2Member Pro so any Pro shortcodes are also fine.)

Very interesting idea… No such functionality, but I can build. Can be a statement in [s2If] too… So if you need developer, please contact me.