Problem 4.
Copy the following code:
import numpy as np
Do the following coding tasks.
Part 4.1.
Generate a NumPy array with shape (5,8,3,1,2). Each entry is a standard normal.
Use random seed 2026.
Part 4.2.
Remove the dimension whose length is 1.
Part 4.3.
Insert a new dimension at axis 2.
Part 4.4.
Swap axes 0 and 1.
Part 4.5.
For those entries whose values are above 1, reset their values as 100.
Part 4.6.
Flatten the array.