I’ve never had to do that in practice, because PyPi only allows to have one package with a given name.
But if you had two numpy packages with the same name, I think you could use something like:
import numpy as np1
import sys
sys.path.insert(0, "/path/to/other/numpy")
import numpy as np2