input: Write a function to convert a positive integer to a negative integer or vice versa using the bitwise NOT operator. If the input is a positive integer, the function should return its negative counterpart, and if the input is a negative integer, the function should return its positive counterpart.
  
  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_negative(-5) == 5
  assert convert_to_positive(5) == -5
  assert convert_to_positive(-5) == 5
  assert convert_to_negative(0) == 0
  assert convert_to_positive(0) == 0
output: def convert_to_negative(x): 
      return ~x + 1 
    
  def convert_to_positive(x): 
      return ~(x-1)