def true_bin_repr(A: int, num_bits=4) -> int:
    """For negative numbers, noop for positive numbers since they're already in proper form

    Args:
        A:
        num_bits:

    Returns:

    Examples:
        >>> bin(true_bin_repr(~int("0001", 2), num_bits=4))
        '0b1110'
        >>> true_bin_repr(~int("0001", 2), num_bits=4)
        14
        >>> bin(true_bin_repr(~int("0001", 2), num_bits=32))
        '0b11111111111111111111111111111110'
    """
    BIT_MASK = (1 << num_bits) - 1
    return A & BIT_MASK