<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_offset(self, offset):
 """Add specified value to the offset of a binary quadratic model. Args: offset (number):
 Value to be added to the constant energy offset of the binary quadratic model. Examples: This example creates an Ising model with an offset of -0.5 and then adds to it. 0.5 """

        self.offset += offset

        try:
            self._counterpart.add_offset(offset)
        except AttributeError:
            pass