code: def one_sparse(array):
      """1-sparse algorithm
  
      Keyword arguments:
      array -- stream of tuples
      """
      sum_signs = 0
      bitsum = [0] * 32
      sum_values = 0
      for val, sign in array:
          if sign == "+":
              sum_signs += 1
              sum_values += val
          else:
              sum_signs -= 1
              sum_values -= val
  
          _get_bit_sum(bitsum, val, sign)
  
      if sum_signs > 0 and _check_every_number_in_bitsum(
          bitsum, sum_signs
      ):
          return int(sum_values / sum_signs)
      else:
          return None
  
label_desc: Use image node_id 1 for calling a global function with example usage: one_sparse(array) and returns: int, None