code: def dataset(ctx, client, revision, datadir, format):
      
      ctx.meta['renku.datasets.datadir'] = datadir
  
      if ctx.invoked_subcommand is not None:
          return
  
      if revision is None:
          datasets = client.datasets.values()
      else:
          datasets = client.datasets_from_commit(client.repo.commit(revision))
  
      DATASETS_FORMATS[format](client, datasets)
docs: Handle datasets.