code: def test_metrics_show_with_non_dict_values():
      td = metrics_table(
          {"branch_1": {"data": {"metrics.json": {"data": 1}}}},
          all_branches=True,
      )
      assert td.as_dict() == [
          {"Revision": "branch_1", "Path": "metrics.json", "": "1"}
      ]
  
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 18 for calling a global function with example usage: test_metrics_show_with_non_dict_values() without return types