def CreateTag(region, resource_id, tag_name, tag_value):
 ec2 = _Connect(region)
 ec2.create_tags([resource_id], {tag_name: tag_value})

def CreateTag ( region , resource_id , tag_name , tag_value ) : ec2 = _Connect ( region ) ec2 . create_tags ( [ resource_id ] , { tag_name : tag_value } )
create a tag for resource_id with specified name and value .