code: def test_metrics_show_with_multiple_revision():
      td = metrics_table(
          {
              "branch_1": {
                  "data": {
                      "metrics.json": {
                          "data": {"a": 1, "b": {"ad": 1, "bc": 2}}
                      }
                  }
              },
              "branch_2": {
                  "data": {
                      "metrics.json": {
                          "data": {"a": 1, "b": {"ad": 3, "bc": 4}}
                      }
                  }
              },
          },
          all_branches=True,
      )
      assert td.as_dict() == [
          {
              "Revision": "branch_1",
              "Path": "metrics.json",
              "a": "1",
              "b.ad": "1",
              "b.bc": "2",
          },
          {
              "Revision": "branch_2",
              "Path": "metrics.json",
              "a": "1",
              "b.ad": "3",
              "b.bc": "4",
          },
      ]
  
imports: import textwrap
  import pytest
  from dvc.compare import diff_table, metrics_table, show_diff, show_metrics
  from dvc.utils.serialize import YAMLFileCorruptedError
label_desc: Use image node_id 19 for calling a global function with example usage: test_metrics_show_with_multiple_revision() without return types