async function createDataset() {
    // Specify the source and target language.
    const datasetSpec = {
      sourceLanguageCode: source,
      targetLanguageCode: target,
    };

    // Set dataset name and dataset specification.
    const datasetInfo = {
      displayName: displayName,
      translationDatasetMetadata: datasetSpec,
    };

    // Create a dataset with the dataset specification in the region.
    const [operation] = await client.createDataset({
      parent: projectLocation,
      dataset: datasetInfo,
    });

    // wait for lro to finish
    const [dataset] = await operation.promise();
    // Display the dataset information
    console.log(`Dataset name: ${dataset.name}`);
    console.log(`Dataset id: ${dataset.name.split('/').pop(-1)}`);
  }
Demonstrates using the AutoML client to request to create dataset for
automl translation.
TODO(developer): Uncomment the following lines before running the sample.