def __init__(self, rom_path):
<EOL>if not isinstance(rom_path, str):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not os.path.exists(rom_path):<EOL><INDENT>msg = '<STR_LIT>'.format(rom_path)<EOL>raise ValueError(msg)<EOL><DEDENT>self.raw_data = np.fromfile(rom_path, dtype='<STR_LIT>')<EOL>if not np.array_equal(self._magic, self._MAGIC):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if self._zero_fill != <NUM_LIT:0>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Initialize a new ROM.

Args:
    rom_path (str): the path to the ROM file

Returns:
    None