code: def test_show_experiment(tmp_dir, scm, dvc, exp_stage, workspace):
      baseline_rev = scm.get_rev()
      timestamp = datetime.fromtimestamp(
          scm.gitpython.repo.rev_parse(baseline_rev).committed_date
      )
  
      exp_rev = first(
          dvc.experiments.run(
              exp_stage.addressing,
              params=["foo=2"],
              tmp_dir=not workspace,
          )
      )
      results = dvc.experiments.show()
      assert results[1].dumpd() == {
          "rev": baseline_rev,
          "name": "master",
          "data": make_data(rev=baseline_rev, timestamp=timestamp),
          "error": None,
          "experiments": [
              {
                  "revs": [
                      {
                          "rev": exp_rev,
                          "name": ANY,
                          "data": make_data(
                              rev=exp_rev, params={"foo": 2}
                          ),
                          "error": None,
                          "experiments": None,
                      }
                  ],
                  "executor": None,
                  "name": ANY,
              }
          ],
      }
  
imports: import logging
  import os
  from datetime import datetime
  from unittest.mock import ANY
  import pytest
  from funcy import first
  from scmrepo.exceptions import SCMError
  from dvc.cli import main
  from dvc.repo.experiments.executor.base import BaseExecutor, ExecutorInfo, TaskStatus
  from dvc.repo.experiments.refs import CELERY_STASH
  from dvc.repo.experiments.utils import EXEC_PID_DIR, EXEC_TMP_DIR, exp_refs_by_rev
  from dvc.utils import relpath
label_desc: Use image node_id 6 for calling a global function with example usage: test_show_experiment(tmp_dir, scm, dvc, exp_stage, workspace) without return types