code: def upgrade():
      """Apply Resource based permissions."""
      log = logging.getLogger()
      handlers = log.handlers[:]
      remap_permissions()
      log.handlers = handlers
  
imports: from __future__ import annotations
  import logging
  from airflow.security import permissions
  from airflow.www.app import cached_app
label_desc: Use image node_id 3 for calling a global function with example usage: upgrade() without return types