In the above code, the following Google Sheets API functions are used:

spreadsheets().values().get(): This function is used to retrieve data from a specified range in a sheet. In the code, it is used to get all the rows from the 'Sheet1' sheet in the specified spreadsheet.
build(): This function is used to build a resource object for interacting with the Google Sheets API.
from_json_keyfile_name(): This function is used to create a ServiceAccountCredentials object from a JSON file containing the credentials.
execute(): This function is used to execute the API request and return the results.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence