Script for adding tag alarm

Yes I saw. And through the following script I get to create an OPC boolean tag from scratch.

# The provider and folder the Tag will be placed at. 
baseTagPath = "[default]MyPath"
 
# Properties that will be configured on that Tag.
name = "BitAlarm_00_"
opcItemPath = "nsu=KEPServerEX;s=DR_1.CH_1.Allarmi[x].Allarmi[00].BitAlarm[x].BitAlarm[00]"
opcServer = "KEPServerEX"
valueSource = "opc"
dataType = "Boolean"
 
alarms = [
            {
                "name": "Alarm_0_1.",               
                "priority": "High",               
                "setpointA": 1,
                "label": "Example",
                "displayPath": "12345",
                "shelvingAllowed": False
                
            }
        ]
        
       
# Configure the tag.
tag = [
		{
            "name": name,         
            "opcItemPath" : opcItemPath,
            "opcServer": opcServer,
            "valueSource": valueSource,
            "dataType": dataType,
            "alarms": alarms
        }
    ]
 
 
# Set the collision policy to Abort. Thus, if a Tag already exists at the base path,
# we will not override the Tag. If you are overwriting an existing Tag, then set this to "o".
collisionPolicy = "o"
 
# Create the Tag.
system.tag.configure(baseTagPath, tag, collisionPolicy)

My situation however is the following: I import the tags directly by importing them from KepServerEx, then it creates the variable tree with folders and subfolders of the various alarm tags.
From this situation I would like to alarm the various tags to be able to configure them. The problem is that I cannot add the alarm via script.