code: def show(
      repo: "Repo",
      revs: Union[List[str], str, None] = None,
      all_branches: bool = False,
      all_tags: bool = False,
      all_commits: bool = False,
      num: int = 1,
      hide_queued: bool = False,
      hide_failed: bool = False,
      sha_only: bool = False,
      **kwargs,
  ) -> List["ExpState"]:
      return collect(
          repo,
          revs=revs,
          all_branches=all_branches,
          all_tags=all_tags,
          all_commits=all_commits,
          num=num,
          hide_queued=hide_queued,
          hide_failed=hide_failed,
          sha_only=sha_only,
          **kwargs,
      )
  
imports: from collections import Counter, defaultdict
  from datetime import date, datetime
  from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, List, Literal, Mapping, NamedTuple, Optional, Set, Tuple, Union
  from dvc.exceptions import InvalidArgumentError
  from dvc.log import logger
  from dvc.scm import Git
  from dvc.ui import ui
  from dvc.utils.flatten import flatten
  from .collect import collect
label_desc: Use image node_id 1 for calling a global function with example usage: show(repo, revs, all_branches, all_tags, all_commits, num, hide_queued, hide_failed, sha_only) and returns: collect