code: def test_warns_with_unused_where_primitives(es):
      if es.dataframe_type == Library.SPARK:
          pytest.skip("Spark throws extra warnings")
      warning_text = (
          "Some specified primitives were not used during DFS:\n"
          + "  where_primitives: ['count', 'sum']\n"
          + "This may be caused by a using a value of max_depth that is too small, not setting interesting values, "
          + "or it may indicate no compatible columns for the primitive were found in the data. If the DFS call "
          + "contained multiple instances of a primitive in the list above, none of them were used."
      )
  
      with pytest.warns(UnusedPrimitiveWarning) as record:
          dfs(
              entityset=es,
              target_dataframe_name="customers",
              agg_primitives=["count"],
              where_primitives=["sum", "count"],
              max_depth=1,
              features_only=True,
          )
  
      assert record[0].message.args[0] == warning_text
  
imports: from unittest.mock import patch
  import composeml
  import numpy
  import pandas
  import pytest
  from packaging.version import parse
  from woodwork.column_schema import ColumnSchema
  from woodwork.logical_types import NaturalLanguage
  from featuretools.computational_backends.calculate_feature_matrix import FEATURE_CALCULATION_PERCENTAGE
  from featuretools.entityset import EntitySet, Timedelta
  from featuretools.exceptions import UnusedPrimitiveWarning
  from featuretools.primitives import GreaterThanScalar, Max, Mean, Min, Sum
  from featuretools.primitives.base import AggregationPrimitive, TransformPrimitive
  from featuretools.synthesis import dfs
  from featuretools.synthesis.deep_feature_synthesis import DeepFeatureSynthesis
  from featuretools.tests.testing_utils import to_pandas
  from featuretools.utils.gen_utils import Library, import_or_none, is_instance
label_desc: Use image node_id 22 for calling a global function with example usage: test_warns_with_unused_where_primitives(es) without return types