import re


def _extract_ram_type(ram: str):
    """Extract RAM type (DDR3, DDR4, etc.)"""
    if not ram:
        return

    pattern = r"DDR(\d)"
    if match := re.search(pattern, ram):
        return match.group(1)