docs: def get_serializer(name):
      '''
      Return the serialize function.
      '''
      try:
          log.debug('Using %s as serializer', name)
          return SERIALIZER_LOOKUP[name]
      except KeyError:
          msg = 'Serializer {} is not available'.format(name)
          log.error(msg, exc_info=True)
          raise InvalidSerializerException(msg)