code: def test_approximate_features(pd_dataframes, relationships):
      # TODO: Update to use Dask dataframes when issue #985 is closed
      cutoff_times_df = pd.DataFrame(
          {
              "instance_id": [1, 3, 1, 5, 3, 6],
              "time": [11, 16, 16, 26, 17, 22],
          },
      )
      # force column to BooleanNullable
      pd_dataframes["transactions"] += ({"fraud": "BooleanNullable"},)
      feature_matrix, features = dfs(
          dataframes=pd_dataframes,
          relationships=relationships,
          target_dataframe_name="transactions",
          cutoff_time=cutoff_times_df,
          approximate=5,
          cutoff_time_in_index=True,
      )
      direct_agg_feat_name = "cards.PERCENT_TRUE(transactions.fraud)"
      assert len(feature_matrix.index) == 6
      assert len(feature_matrix.columns) == len(features)
  
      truth_values = pd.Series(data=[1.0, 0.5, 0.5, 1.0, 0.5, 1.0])
  
      assert (
          feature_matrix[direct_agg_feat_name] == truth_values.values
      ).all()
  
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 10 for calling a global function with example usage: test_approximate_features(pd_dataframes, relationships) without return types