sanity# Functions sanity_check(k) Perform a series of sanity checks on a given knot object k to validate its structure and properties.