def METHOD_NAME(
    self, spreadsheet_id: str, worksheet_id: Optional[int] = None
) -> Union[SpreadSheet, WorkSheet]:
    """Get a spreadsheet or worksheet from a Google sheet.
    If only `spreadsheet_id` is provided, this will return the entire spreadsheet. Otherwise,
    the specific worksheet will be returned.
    Parameters
    ----------
    spreadsheet_id : str
        ID of the spreadsheet.
    worksheet_id : int
        ID of the worksheet.
    Returns
    -------
    Spreadsheet or WorkSheet
        SpreadSheet or Worksheet.
    """
    ssheet = self.sheets.METHOD_NAME(spreadsheet_id)
    if worksheet_id:
        return ssheet.METHOD_NAME(worksheet_id)
    return ssheet