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