def coerce_result(result):
    """
    Coerces return value to a tuple if it returned only a single value.
    """
    if isinstance(result, tuple):
        return result
    else:
        return (result,)