code: def listDatasetArray(self, **kwargs):
          
          validParameters = ['dataset', 'dataset_access_type', 'detail', 'dataset_id']
  	requiredParameters = {'multiple': ['dataset', 'dataset_id']}
  
          checkInputParameter(method="listDatasetArray", parameters=kwargs.keys(), validParameters=validParameters,
                              requiredParameters=requiredParameters)
  
          #set defaults
          if 'detail' not in kwargs.keys():
              kwargs['detail'] = False
  
          return self.__callServer("datasetlist", data=kwargs, callmethod='POST')
docs: API to list datasets in DBS.
  
          :param dataset: list of datasets [dataset1,dataset2,..,dataset n] (Required if dataset_id is not presented), Max length 1000.
          :type dataset: list
          :param dataset_id: list of dataset_ids that are the primary keys of datasets table: [dataset_id1,dataset_id2,..,dataset_idn] (Required if dataset is not presented), Max length 1000.
          :type dataset: list
          :param dataset_access_type: List only datasets with that dataset access type (Optional)
          :type dataset_access_type: str
          :param detail: brief list or detailed list 1/0
          :type detail: bool
          :returns: List of dictionaries containing the following keys (dataset). If the detail option is used. The dictionary contains the following keys (primary_ds_name, physics_group_name, acquisition_era_name, create_by, dataset_access_type, data_tier_name, last_modified_by, creation_date, processing_version, processed_ds_name, xtcrosssection, last_modification_date, dataset_id, dataset, prep_id, primary_ds_type)
          :rtype: list of dicts