def __init__(self, mapping):
        subtemplates = {}
        for key, typ in mapping.items():
            subtemplates[key] = as_template(typ)
        self.subtemplates = subtemplates
Create a template according to a dict (mapping). The
dataset/ETHPy150Open beetbox/beets/beets/util/confit.py/MappingTemplate.__init__