def str_or_null(res):
    if res is None:
        return ''
    return str(res)
Return res as a string, unless res is None, in which case it returns
dataset/ETHPy150Open erkyrath/tworld/lib/two/evalctx.py/str_or_null