code: def listPrimaryDsTypes(self, primary_ds_type="", dataset=""):
          
          if primary_ds_type:
              primary_ds_type = primary_ds_type.replace("*", "%")
          if dataset:
              dataset = dataset.replace("*", "%")
          try:
              return self.dbsPrimaryDataset.listPrimaryDSTypes(primary_ds_type, dataset)
          except dbsException as de:
              dbsExceptionHandler(de.eCode, de.message, self.logger.exception, de.message)
          except Exception as ex:
              sError = "DBSReaderModel/listPrimaryDsTypes. %s\n. Exception trace: \n %s" \
                  % (ex, traceback.format_exc())
              dbsExceptionHandler('dbsException-server-error',  dbsExceptionCode['dbsException-server-error'], self.logger.exception, sError)
docs: API to list primary dataset types
  
          :param primary_ds_type: List that primary dataset type (Optional)
          :type primary_ds_type: str
          :param dataset: List the primary dataset type for that dataset (Optional)
          :type dataset: str
          :returns: List of dictionaries containing the following keys (primary_ds_type_id, data_type)
          :rtype: list of dicts