Getting syntax error 'return' outside function while running below code. # Make the request to publish and check status code print("\tUploading...") server_response = requests.post(publish_url, data=payload, headers={'x-tableau-auth': auth_token, 'content-type': content_type}) _check_status(server_response, 201) return Continue reading...