code: def register_minter(self, name, minter):
          
          assert name not in self.minters
          self.minters[name] = minter
docs: Register a minter.
  
          :param name: Minter name.
          :param minter: The new minter.