code: def duo_bypass_code_create_non_expiring(rec):
      """
      author:       @mimeframe
      description:  Alert when a DUO bypass code is created that is non-expiring.
      reference:    https://duo.com/docs/administration-users#generating-a-bypass-code
      """
      return (
          rec["action"] == "bypass_create"
          and safe_json_loads(rec["description"]).get("valid_secs")
          is None
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: duo_bypass_code_create_non_expiring(rec) and returns: unknown