code: def test_log_metric():
      run_id = mock.Mock()
      metric = mock.Mock()
  
      with mock.patch.object(AbstractStoreTestImpl, "log_batch"):
          store = AbstractStoreTestImpl()
          store.log_metric(run_id, metric)
          store.log_batch.assert_called_once_with(
              run_id, metrics=[metric], params=[], tags=[]
          )
  
imports: from unittest import mock
  from mlflow.entities import ViewType
  from mlflow.store.tracking import SEARCH_MAX_RESULTS_DEFAULT
  from mlflow.store.tracking.abstract_store import AbstractStore
label_desc: Use image node_id 1 for calling a global function with example usage: test_log_metric() without return types