<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_advertising(self, enabled):
 """Toggle advertising."""

        if enabled:
            self.bable.set_advertising(
                enabled=True,
                uuids=[TileBusService.uuid],
                name="V_IOTile ",
                company_id=ArchManuID,
                advertising_data=self._advertisement(),
                scan_response=self._scan_response(),
                sync=True
            )
        else:
            try:
                self.bable.set_advertising(enabled=False, sync=True)
            except bable_interface.BaBLEException:
                # If advertising is already disabled
                pass