def METHOD_NAME(v: Any) -> str:
    if v is None:
        raise RuntimeError('unexpected empty value')
    if isinstance(v, list):
        assert len(v) == 1
        return str(v[0])
    return str(v)