def METHOD_NAME(
    cls, value: Union[str, int], use_repr: bool = False
) -> JobRunResult:
    """Returns a new JobRunResult with a stdout value.
    Args:
        value: *. The input value to convert into a stdout result. Types are
            always casted to string using '%s' formatting.
        use_repr: bool. Whether to use the `repr` of the value.
    Returns:
        JobRunResult. A JobRunResult with the given value as its stdout.
    """
    str_value = ('%r' if use_repr else '%s') % (value,)
    return JobRunResult(stdout=str_value)