code: def test_diff_table(title):
      td = diff_table(
          {"metrics.json": {"a.b.c": {"old": 1, "new": 2, "diff": 3}}},
          title=title,
      )
      assert td.as_dict() == [
          {
              "Path": "metrics.json",
              title: "a.b.c",
              "HEAD": "1",
              "workspace": "2",
              "Change": "3",
          }
      ]
  
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 1 for calling a global function with example usage: test_diff_table(title) without return types