import numpy as np
# Create NumPy array I with new specific integers
I = np.array([5, 10, 20, 30, 40, 60, 80, 100, 200], dtype=np.uint8)
B = ((I.reshape(-1,1) & (2**np.arange(8))) != 0).astype(int)
print(B[:,::-1])
# Create NumPy array I with new specific integers and specify data type as unsigned 8-bit integer
I = np.array([5, 10, 20, 30, 40, 60, 80, 100, 200], dtype=np.uint8)
print(np.unpackbits(I[:, np.newaxis], axis=1))