input: def convert_using_bitwise_not(x: int) -> int:
      """Converts a positive integer to negative or vice versa using the bitwise NOT operator.
      >>> convert_using_bitwise_not(10)
      -10
      >>> convert_using_bitwise_not(-10)
      10
      """
      if x > 0:
          return ~x + 1
      return ~(x - 1)
output:     if x > 0:
          return ~x + 1
      return ~(x - 1)