code: def test_metrics_diff_non_metrics(tmp_dir, scm, dvc):
      def _gen(val):
          tmp_dir.scm_gen(
              {"some_file.yaml": f"foo: {val}"}, commit=str(val)
          )
  
      _gen(1)
      _gen(2)
      _gen(3)
  
      result = dvc.metrics.diff(
          targets=["some_file.yaml"], a_rev="HEAD~2"
      )
      assert result == {
          "diff": {
              "some_file.yaml": {"foo": {"old": 1, "new": 3, "diff": 2}}
          }
      }
  
imports: import json
  from os.path import join
  import pytest
  from dvc.cli import main
  from dvc.utils import relpath
  from dvc.utils.serialize import JSONFileCorruptedError
label_desc: Use image node_id 13 for calling a global function with example usage: test_metrics_diff_non_metrics(tmp_dir, scm, dvc) without return types