code: def find_stackable_primitives(all_primitives, primitive):
      applicable_primitives = []
      for x in all_primitives:
          if x.input_types == [primitive.return_type]:
              applicable_primitives.append(x)
      return applicable_primitives
  
file_path: featuretools/featuretools/tests/primitive_tests/utils.py
imports: from inspect import signature
  import pytest
  from featuretools import FeatureBase, calculate_feature_matrix, dfs, encode_features, list_primitives, load_features, save_features
  from featuretools.primitives.base import AggregationPrimitive, PrimitiveBase
  from featuretools.tests.testing_utils import make_ecommerce_entityset
label_desc: Use image node_id 4 for calling a global function with example usage: find_stackable_primitives(all_primitives, primitive) and returns: applicable_primitives