when the checkbox is unchecked, the xpath or id is different than when it is checked which means, then while finding the element,we need to
find some common text that is present in the xpath in both checked and unchecked condition
use it to locate the object
then compare the xpath of checked checkbox and unchecked checkbox
if (xpath of checked checkbox): pass else: chkbox.click()