code: def raw_encode(self, value):
          
          if type(value) in self.encoders:
              encoder = self.encoders[type(value)]
              return encoder(self, value)
          raise ValueError("No encoder for value '%s' of type '%s'" %
                           (value, type(value)))
docs: Run the encoder on a value