After Commodore Matthew Perry opened up shogun Japan with gunboat diplomacy in 1853 , the sleepy fishing village of Yokohama became a foreign settlement , epitomizing the determination of Emperor Meiji , a Japanese version of Peter the Great , to import and emulate Western ideas .