code: def has_alternative_bit(n):
      first_bit = 0
      second_bit = 0
      while n:
          first_bit = n & 1
          if n >> 1:
              second_bit = (n >> 1) & 1
              if not first_bit ^ second_bit:
                  return False
          else:
              return True
          n = n >> 1
      return True
  
label_desc: Use image node_id 1 for calling a global function with example usage: has_alternative_bit(n) and returns: True, True, False