code: def test_accepts_cutoff_time_compose(dataframes, relationships):
      def fraud_occured(df):
          return df["fraud"].any()
  
      kwargs = {
          "time_index": "transaction_time",
          "labeling_function": fraud_occured,
          "window_size": 1,
      }
      if parse(cp.__version__) >= parse("0.10.0"):
          kwargs["target_dataframe_index"] = "card_id"
      else:
          kwargs[
              "target_dataframe_name"
          ] = "card_id"  # pragma: no cover
  
      lm = cp.LabelMaker(**kwargs)
  
      transactions_df = to_pandas(dataframes["transactions"][0])
  
      labels = lm.search(transactions_df, num_examples_per_instance=-1)
  
      labels["time"] = pd.to_numeric(labels["time"])
      labels.rename({"card_id": "id"}, axis=1, inplace=True)
  
      feature_matrix, features = dfs(
          dataframes=dataframes,
          relationships=relationships,
          target_dataframe_name="cards",
          cutoff_time=labels,
      )
      feature_matrix = to_pandas(feature_matrix, index="id")
      assert len(feature_matrix.index) == 6
      assert len(feature_matrix.columns) == len(features) + 1
  
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 6 for calling a global function with example usage: test_accepts_cutoff_time_compose(dataframes, relationships) and returns: df