Write numpy code to perform NAME_1 sampling for 1D classical Ising model with magnetic field  Please reply with exactly 4 paragraphs and separate each paragraph with two new lines. The very first paragraph must start with the word "assistance".
user