input: Write a function that converts a positive integer to a negative integer or vice versa using the bitwise NOT operator. The function should take an integer as input and return its opposite form (positive to negative or negative to positive) using the bitwise NOT operator.
  
  def convert_to_negative(x):
      return ~x + 1
  
  def convert_to_positive(x):
      return ~(x-1)
  
  assert convert_to_negative(10) == -10
  assert convert_to_positive(-10) == 10
  assert convert_to_negative(5) == -5
  assert convert_to_positive(-5) == 5
  assert convert_to_negative(0) == 0
output: def convert_to_negative(x):
      return ~x + 1
  
  def convert_to_positive(x):
      return ~(x-1)