code: def test_override_cmp(es):
      count = Feature(
          es["log"].ww["id"],
          parent_dataframe_name="sessions",
          primitive=Count,
      )
      _sum = Feature(
          es["log"].ww["value"],
          parent_dataframe_name="sessions",
          primitive=Sum,
      )
      gt_lo = count > 1
      gt_other = count > _sum
      ge_lo = count >= 1
      ge_other = count >= _sum
      lt_hi = count < 10
      lt_other = count < _sum
      le_hi = count <= 10
      le_other = count <= _sum
      ne_lo = count != 1
      ne_other = count != _sum
  
      to_test = [
          [True, True, False],
          [False, False, True],
          [True, True, True],
          [False, False, True],
          [True, True, True],
          [True, True, False],
          [True, True, True],
          [True, True, False],
      ]
      features = [
          gt_lo,
          gt_other,
          ge_lo,
          ge_other,
          lt_hi,
          lt_other,
          le_hi,
          le_other,
          ne_lo,
          ne_other,
      ]
  
      df = calculate_feature_matrix(
          entityset=es,
          features=features,
          instance_ids=[0, 1, 2],
      )
      df = to_pandas(df, index="id", sort_index=True)
      for i, test in enumerate(to_test):
          v = df[features[i].get_name()].tolist()
          assert v == test
  
file_path: featuretools/featuretools/tests/primitive_tests/test_overrides.py
imports: from featuretools import Feature, calculate_feature_matrix
  from featuretools.primitives import AddNumeric, AddNumericScalar, Count, DivideByFeature, DivideNumeric, DivideNumericScalar, Equal, EqualScalar, GreaterThan, GreaterThanEqualTo, GreaterThanEqualToScalar, GreaterThanScalar, LessThan, LessThanEqualTo, LessThanEqualToScalar, LessThanScalar, ModuloByFeature, ModuloNumeric, ModuloNumericScalar, MultiplyNumeric, MultiplyNumericScalar, Negate, NotEqual, NotEqualScalar, ScalarSubtractNumericFeature, SubtractNumeric, SubtractNumericScalar, Sum
  from featuretools.tests.testing_utils import to_pandas
label_desc: Use image node_id 5 for calling a global function with example usage: test_override_cmp(es) without return types