def should_skip_sanity_check(self, for_machine: MachineChoice) -> bool:
    should = self.environment.properties.host.get('skip_sanity_check', False)
    if (not isinstance(should, bool)):
        raise InterpreterException('Option skip_sanity_check must be a boolean.')
    if ((for_machine != MachineChoice.HOST) and (not should)):
        return False
    if ((not self.environment.is_cross_build()) and (not should)):
        return False
    return should
def should_skip_sanity_check(self, for_machine: MachineChoice) -> bool:
    should = self.environment.properties.host.get('skip_sanity_check', False)
    if (not isinstance(should, bool)):
        raise InterpreterException('Option skip_sanity_check must be a boolean.')
    if ((for_machine != MachineChoice.HOST) and (not should)):
        return False
    if ((not self.environment.is_cross_build()) and (not should)):
        return False
    return should