code: def majority_element_3(nums):
      majority = 0
      count = 0
  
      for num in nums:
          if count == 0:
              majority = num
  
          if num == majority:
              count += 1
          else:
              count -= 1
  
      return majority
  
label_desc: Use image node_id 3 for calling a global function with example usage: majority_element_3(nums) and returns: majority