input: 
  def convert_to_negative(x: int) -> int:
      """ Converts a positive integer to its negative equivalent using the bitwise NOT operator.
      >>> convert_to_negative(5)
      -5
      >>> convert_to_negative(123)
      -123
      """
      return ~x + 1
  
  def convert_to_positive(x: int) -> int:
      """ Converts a negative integer to its positive equivalent using the bitwise NOT operator.
      >>> convert_to_positive(-5)
      5
      >>> convert_to_positive(-123)
      123
      """
      return ~(x - 1)
  
output:     
      return ~x + 1
  