class_docstr: Like YieldDatasets, but also provide "gitshasum" value, if any.
      
class_docstr_tok: ["Like","YieldDatasets",",","but","also","provide","``","gitshasum","''","value",",","if","any","."]
code: def __call__(self, res):
      ds = super(YieldDatasetAndRevision, self).__call__(res)
      return ds, res.get("gitshasum")
  
imports: import logging
  from os.path import lexists
  import itertools
  from datalad.interface.base import Interface
  from datalad.interface.base import build_doc, eval_results
  from datalad.interface.results import get_status_dict, YieldDatasets
  from datalad.support.constraints import EnsureBool, EnsureChoice, EnsureStr, EnsureNone
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import CapturedException, CommandError
  from datalad.support.param import Parameter
  from datalad.interface.common_opts import recursion_flag, recursion_limit
  from datalad.distribution.dataset import require_dataset
  from .dataset import EnsureDataset, datasetmethod
label_desc: Use image node_id 1 for calling the YieldDatasetAndRevision obj's underlying member method code with example usage: obj.__call__(res) and returns: ds,  res