code: async function loadLocalFile() {
      // Imports a local file into a table.
  
      // Create a client
      const bigqueryClient = new BigQuery();
  
      // Load data from a local file into the table
      const [job] = await bigqueryClient
        .dataset(datasetId)
        .table(tableId)
        .load(filename);
  
      console.log(`Job ${job.id} completed.`);
  
      // Check the job's status for errors
      const errors = job.status.errors;
      if (errors && errors.length > 0) {
        throw errors;
      }
    }
docs: TODO(developer): Uncomment the following lines before running the sample.
   const filename = "/path/to/file.csv"; const datasetId = "my_dataset"; const tableId = "my_table";