code: def test_metrics_show_mocked(mocker, markdown):
      ret = mocker.MagicMock()
      m = mocker.patch("dvc.compare.metrics_table", return_value=ret)
  
      show_metrics({}, markdown=markdown)
  
      m.assert_called_once_with(
          {},
          all_branches=False,
          all_tags=False,
          all_commits=False,
          precision=None,
          round_digits=False,
      )
      ret.render.assert_called_once_with(markdown=markdown)
  
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 23 for calling a global function with example usage: test_metrics_show_mocked(mocker, markdown) without return types