def format_change(name: str, change: Change) -> str:
    """Format the change for display.

    Args:
        name: The name of the change (e.g., "dependencies" or "devDependencies").
        change: The Change named tuple containing added and removed packages.

    Returns:
        A formatted string representing the changes.
    """
    if not change.added and not change.removed:
        return ""
    added_str = ", ".join(sorted(change.added))
    removed_str = ", ".join(sorted(change.removed))
    change_str = f"{name}:\n"
    if change.added:
        change_str += f"  Added: {added_str}\n"
    if change.removed:
        change_str += f"  Removed: {removed_str}\n"
    return change_str.strip()
Format the change for display.

    Args:
        name: The name of the change (e.g., "dependencies" or "devDependencies").
        change: The Change named tuple containing added and removed packages.

    Returns:
        A formatted string representing the changes.
    
reflex/utils/exec.py