<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_api_version(self, major, minor):
 """Set the API version this module was designed for. Each module must declare the mib12 API version it was compiled with as a 2 byte major.minor number. This information is used by the pic12_executive to decide whether the application is compatible. """


        if not self._is_byte(major) or not self._is_byte(minor):
            raise ArgumentError("Invalid API version number with component that does not fit in 1 byte",
                                major=major, minor=minor)

        self.api_version = (major, minor)