def get_memory() -> int:
    """Get the total memory in MB.

    Returns:
        The total memory in MB.
    """
    try:
        return psutil.virtual_memory().total >> 20
    except ValueError:  # needed to pass ubuntu test
        return 0
Get the total memory in MB.

    Returns:
        The total memory in MB.
    
reflex/utils/telemetry.py