code: def _revisions(repo, revs, experiment):
      revisions = revs or []
      if experiment and len(revisions) == 1:
          baseline = repo.experiments.get_baseline(revisions[0])
          if baseline:
              revisions.append(baseline[:7])
      if len(revisions) <= 1:
          if len(revisions) == 0 and repo.scm.is_dirty(
              untracked_files=False
          ):
              revisions.append("HEAD")
          revisions.append("workspace")
      return revisions
  
label_desc: Use image node_id 1 for calling a global function with example usage: _revisions(repo, revs, experiment) and returns: revisions