code: def get_datasets(self, project_id=None):
          
          project_id = self._get_project_id(project_id)
  
          try:            
              datasets = self.bigquery.datasets()
              request = datasets.list(projectId=project_id)
              result = request.execute(num_retries=self.num_retries)
              return result.get('datasets', [])
          except HttpError as e:
              logger.error("Cannot list datasets: {0}".format(e))
              return None
docs: List all datasets in the project.
          
          Parameters
          ----------
          project_id: str
              Unique ``str`` identifying the BigQuery project contains the dataset
  
          Returns
          -------
          list
              Dataset resources