def METHOD_NAME(self):
    """
    CP runs code.py after soft-reboot even in raw repl.
    At the same time, it re-initializes VM and hardware just by switching
    between raw and friendly REPL (tested in CP 6.3 and 7.1)
    """
    logger.info("Creating fresh REPL for CP")
    self._ensure_normal_mode()
    self._ensure_raw_mode()