python pyautogui how to change the screenshot location

pyautogui.screenshot(region=(0,0, 300, 400))

#Thank me later 

Here is what the above code is Doing:
1. It’s taking a screenshot of the entire screen.
2. It’s cropping the screenshot to only include the top-left 300×400 pixels.
3. It’s saving the screenshot to the file C:\screenshots\screencap.png.
4. It’s displaying the screenshot on the screen for 5 seconds.