code: def test_compare_dfs(col_defs, primitives):
      input_feature_names = set([x[0] for x in col_defs])
      df = generate_fake_dataframe(
          col_defs=col_defs,
      )
  
      es = EntitySet(id="test")
      es.add_dataframe(df, "df")
  
      features_old = dfs(
          entityset=es,
          target_dataframe_name="df",
          trans_primitives=primitives,
          features_only=True,
          return_types="all",
          max_depth=1,
      )
  
      origin_features = schema_to_features(df.ww.schema)
      features = generate_features_from_primitives(
          origin_features, primitives
      )
  
      feature_names_old = set([x.get_name() for x in features_old]) - input_feature_names  # type: ignore
  
      feature_names_new = (
          set([x.name for x in features]) - input_feature_names
      )
      assert feature_names_old == feature_names_new
  
imports: from unittest.mock import patch
  import pytest
  from woodwork.column_schema import ColumnSchema
  from woodwork.logical_types import Boolean, BooleanNullable, Datetime, Double, NaturalLanguage, Ordinal
  from featuretools.entityset.entityset import EntitySet
  from featuretools.feature_discovery.feature_discovery import _get_features, _get_matching_features, _index_column_set, generate_features_from_primitives, schema_to_features
  from featuretools.feature_discovery.FeatureCollection import FeatureCollection
  from featuretools.feature_discovery.LiteFeature import LiteFeature
  from featuretools.feature_discovery.utils import column_schema_to_keys
  from featuretools.primitives import Absolute, AddNumeric, Count, DateFirstEvent, Equal, Lag, MultiplyNumericBoolean, NumUnique, TransformPrimitive
  from featuretools.primitives.utils import get_transform_primitives
  from featuretools.synthesis import dfs
  from featuretools.tests.testing_utils.generate_fake_dataframe import generate_fake_dataframe
label_desc: Use image node_id 6 for calling a global function with example usage: test_compare_dfs(col_defs, primitives) without return types