:param data:
        :type data: dict
        :return:
        :rtype: dict

def transform(self, data):
        """
        :param data:
        :type data: dict
        :return:
        :rtype: dict
        """
        out = {}
        for key, val in data.items():
            if key in self._transform_map:
                target = self._transform_map[key]
                key, val = target(key, val) if type(target) == types.FunctionType else (key, target)

            out[key] = val


        return out