def METHOD_NAME(self, other, debug_info=None, keep_wired_when_contexts=False):
    if isinstance(other, MagmaProtocol):
        other = other._get_magma_value_()
    self._get_magma_value_().METHOD_NAME(
        other, debug_info, keep_wired_when_contexts
    )