code: def register_printer(self, printer_class):
          
          self._check_common_things('printer', printer_class, AbstractPrinter, self._printers)
  
          instance = printer_class(self, logger_printer)
          self._printers.append(instance)
docs: :param printer_class: Class inheriting from `AbstractPrinter`.