<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse(self, type, data):
 """Parse text as a format. :param type: The unique name of the format :param data: The text to parse as the format """

        try:
            return self.registered_formats[type]['parser'](data)
        except KeyError:
            raise NotImplementedError("No parser found for "
                                      "type '{type}'".format(type=type))