code: def exists(self, dataset_id):
          
          from google.api_core.exceptions import NotFound
  
          try:
              self.client.get_dataset(self.client.dataset(dataset_id))
              return True
          except NotFound:
              return False
          except self.http_error as ex:
              self.process_http_error(ex)
docs: Check if a dataset exists in Google BigQuery
  
          Parameters
          ----------
          dataset_id : str
              Name of dataset to be verified
  
          Returns
          -------
          boolean
              true if dataset exists, otherwise false