# your code goes here
from jinja2 import Environment
var_bind_val_map = {'VarBind_1': '0:8:33:41.00', 'VarBind_2': '.1.3.6.1.4.1.46634.1.3.1.0.62', 'VarBind_3': 'EDGE-1', 'VarBind_4': '2', 'VarBind_5': '1', 'VarBind_6': ' ', 'VarBind_7': 'system', 'VarBind_8': '10.110.1.2', 'VarBind_9': '2147483647', 'VarBind_10': '2147483647', 'VarBind_11': '2147483647', 'VarBind_12': '2147483647'}
thresid_map = "BGP_SESSION_DOWN_{{VarBind_5}}_{{VarBind_4}}"
msg = Environment().from_string(thresid_map).render(**var_bind_val_map)
print("msg is: ",msg)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmZyb20gamluamEyIGltcG9ydCBFbnZpcm9ubWVudAp2YXJfYmluZF92YWxfbWFwID0geydWYXJCaW5kXzEnOiAnMDo4OjMzOjQxLjAwJywgJ1ZhckJpbmRfMic6ICcuMS4zLjYuMS40LjEuNDY2MzQuMS4zLjEuMC42MicsICdWYXJCaW5kXzMnOiAnRURHRS0xJywgJ1ZhckJpbmRfNCc6ICcyJywgJ1ZhckJpbmRfNSc6ICcxJywgJ1ZhckJpbmRfNic6ICcgJywgJ1ZhckJpbmRfNyc6ICdzeXN0ZW0nLCAnVmFyQmluZF84JzogJzEwLjExMC4xLjInLCAnVmFyQmluZF85JzogJzIxNDc0ODM2NDcnLCAnVmFyQmluZF8xMCc6ICcyMTQ3NDgzNjQ3JywgJ1ZhckJpbmRfMTEnOiAnMjE0NzQ4MzY0NycsICdWYXJCaW5kXzEyJzogJzIxNDc0ODM2NDcnfQp0aHJlc2lkX21hcCA9ICJCR1BfU0VTU0lPTl9ET1dOX3t7VmFyQmluZF81fX1fe3tWYXJCaW5kXzR9fSIKbXNnID0gRW52aXJvbm1lbnQoKS5mcm9tX3N0cmluZyh0aHJlc2lkX21hcCkucmVuZGVyKCoqdmFyX2JpbmRfdmFsX21hcCkKcHJpbnQoIm1zZyBpczogIixtc2cpCg==