<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format(self, record):
 """ Format record with formatter. :param record: Record to format :return: Formatted record """

        if not hasattr(record, "type"):
            record.type = "   "
        return self._formatter.format(record)