def _setup_animation_range_from_times(stage, times):
    """Set the start/end times for a USD stage using a provided start/end time.

    Args:
        stage (`pxr.Usd.Stage`):
            The composed stage that will be modified by this function.
        times (tuple[float or int, float or int]):
            The start and end time that will be set onto `stage`.

    Returns:
        tuple[float or int, float or int]: Return the original start/end times.

    """
    start, end = times

    stage.SetStartTimeCode(start)
    stage.SetEndTimeCode(end)
    stage.SetMetadata(
        "comment",
        "This Layer's start/end time codes were set using an explicit start/end time.",
    )

    return (start, end)