def METHOD_NAME(self, checked=True):
    r"""Sets the checked status of the checkbox.
    Parameters
    ----------
    checked : bool, optional
        The checked status.
    """
    self._checked_element.visible = checked
    self._unchecked_element.visible = not checked
    self.checked = checked
    self.set_var(checked)