code: def permission_allowed(datasette, actor, action, resource):
      """Check if actor is allowed to perform this action - return True, False or None"""
  
imports: from pluggy import HookimplMarker
  from pluggy import HookspecMarker
label_desc: Use image node_id 21 for calling a global function with example usage: permission_allowed(datasette, actor, action, resource) without return types