async function predict() {
    // Set the payload by giving the row values.
    const payload = {
      row: {
        values: inputs,
      },
    };

    // Params is additional domain-specific parameters.
    // Currently there is no additional parameters supported.
    const [response] = await automlClient.predict({
      name: modelFullId,
      payload: payload,
      params: {feature_importance: true},
    });
    console.log('Prediction results:');

    for (const result of response.payload) {
      console.log(`Predicted class name: ${result.displayName}`);
      console.log(`Predicted class score: ${result.tables.score}`);

      // Get features of top importance
      const featureList = result.tables.tablesModelColumnInfo.map(
        columnInfo => {
          return {
            importance: columnInfo.featureImportance,
            displayName: columnInfo.columnDisplayName,
          };
        }
      );
      // Sort features by their importance, highest importance first
      featureList.sort((a, b) => {
        return b.importance - a.importance;
      });

      // Print top 10 important features
      console.log('Features of top importance');
      console.log(featureList.slice(0, 10));
    }
  }
Demonstrates using the AutoML client to request prediction from
automl tables using csv.
TODO(developer): Uncomment the following lines before running the sample.