I have a Google Sheets spreadsheet whose local path is, say,
G:/My Drive/MyFolder/MySheet.gsheet
How can I get the ID of the spreadsheet -- the one that appears in its link and can be used to refer to the sheet in Google's Sheets API -- from the local path? I'm using Python with the API.