main = async (projectId, datasetId) => {
  // [START data_catalog_lookup_dataset]
  // -------------------------------
  // Import required modules.
  // -------------------------------
  const {DataCatalogClient} = require('@google-cloud/datacatalog').v1;
  const datacatalog = new DataCatalogClient();

  const lookup = async () => {
    // TODO(developer): Uncomment the following lines before running the sample.
    // const projectId = 'my-project'
    // const datasetId = 'my_dataset'
    const resourceName = `//bigquery.googleapis.com/projects/${projectId}/datasets/${datasetId}`;
    const request = {linkedResource: resourceName};
    const [result] = await datacatalog.lookupEntry(request);
    return result;
  };

  const response = await lookup();
  console.log(response);
  // [END data_catalog_lookup_dataset]
}
This application demonstrates how to perform lookup operations with the
Cloud Data Catalog API.
For more information, see the README.md under /datacatalog and the
documentation at https://cloud.google.com/data-catalog/docs.