<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def process_raw(self, raw: dict) -> None: """Pre-process raw dict. Prepare parameters to work with APIItems. """

        raw_ports = {}

        for param in raw:
            port_index = REGEX_PORT_INDEX.search(param).group(0)

            if port_index not in raw_ports:
                raw_ports[port_index] = {}

            name = param.replace(IOPORT + '.I' + port_index + '.', '')
            raw_ports[port_index][name] = raw[param]

        super().process_raw(raw_ports)