code: def dataset_list_cli(self,
                           sort_by=None,
                           size=None,
                           file_type=None,
                           license_name=None,
                           tag_ids=None,
                           search=None,
                           user=None,
                           mine=False,
                           page=1,
                           csv_display=False):
          datasets = self.dataset_list(sort_by, size, file_type, license_name,
                                       tag_ids, search, user, mine, page)
          fields = ['ref', 'title', 'size', 'lastUpdated', 'downloadCount']
          if datasets:
              if csv_display:
                  self.print_csv(datasets, fields)
              else:
                  self.print_table(datasets, fields)
          else:
              print('No datasets found')