code: def test_is_adhoc_metric():
      assert is_adhoc_metric(STR_METRIC) is False
      assert is_adhoc_metric(SIMPLE_SUM_ADHOC_METRIC) is True
      assert is_adhoc_metric(SQL_ADHOC_METRIC) is True
  
file_path: superset/tests/unit_tests/core_tests.py
imports: from copy import deepcopy
  import pytest
  from superset.utils.core import AdhocColumn, AdhocMetric, ExtraFiltersReasonType, ExtraFiltersTimeColumnType, GenericDataType, get_column_name, get_column_names, get_metric_name, get_metric_names, get_time_filter_status, is_adhoc_metric
  from tests.unit_tests.fixtures.datasets import get_dataset_mock
label_desc: Use image node_id 9 for calling a global function with example usage: test_is_adhoc_metric() without return types