def get_serializer(alias):
    alias = alias or MOMENT_SERIALIZER

    if hasattr(alias, 'loads'):
        return alias
    try:
        return _serializers[alias]
    except __HOLE__:
        raise LookupError("Serializer `{}` not configured.".format(alias))
dataset/ETHPy150Open caxap/redis-moment/moment/conf.py/get_serializer