safe.definitions.layer_modes module