input: from typing import List
  
  def convert_number_sign_using_bitwise_operator(number: int) -> int:
      """ Convert a positive integer to negative or vice versa using bitwise NOT operator.
      >>> convert_number_sign_using_bitwise_operator(5)
      -5
      >>> convert_number_sign_using_bitwise_operator(-7)
      7
      """
      if number > 0:
          return ~number + 1
      else:
          return ~(number - 1)
output:     if number > 0:
          return ~number + 1
      else:
          return ~(number - 1)