input: Write a function to convert a positive integer to negative or vice versa using bitwise NOT operator. If the given input is a positive integer, the function should return the negative of that number, and if the given input is a negative integer, the function should return the positive of that number.
  
  def convert_to_negative(x): 
      return ~x + 1 
    
  def convert_to_positive(x): 
      return ~(x-1)
  
  assert convert_to_negative(5) == -5
  assert convert_to_positive(-7) == 7
  assert convert_to_negative(0) == 0
  assert convert_to_positive(-1) == 1
output: def convert_to_negative(x): 
      return ~x + 1 
    
  def convert_to_positive(x): 
      return ~(x-1)