code: def test_primitive_compatibility(es):
      _, trans_prims = get_valid_primitives(
          es,
          "customers",
          selected_primitives=[TimeSincePrevious],
      )
  
      if es.dataframe_type != Library.PANDAS:
          assert len(trans_prims) == 0
      else:
          assert len(trans_prims) == 1
  
file_path: featuretools/featuretools/tests/synthesis/test_get_valid_primitives.py
imports: import pytest
  from woodwork.column_schema import ColumnSchema
  from featuretools.primitives import AggregationPrimitive, Count, Hour, IsIn, Not, TimeSincePrevious, TransformPrimitive
  from featuretools.synthesis.get_valid_primitives import get_valid_primitives
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 4 for calling a global function with example usage: test_primitive_compatibility(es) without return types