code: def onelogin_events_assumed_role(rec):
      """
      author:       @javutin
      description:  Alert on OneLogin users assuming a different role.
      reference_1:  https://support.onelogin.com/hc/en-us/articles/202123164-Assuming-Users
      reference_2:  https://developers.onelogin.com/api-docs/1/events/event-types
      """
      return rec["event_type_id"] == 3
  
label_desc: Use image node_id 1 for calling a global function with example usage: onelogin_events_assumed_role(rec) and returns: unknown