code: def trans_feat(es):
      return TransformFeature(
          IdentityFeature(es["customers"].ww["cancel_date"]), Year
      )
  
imports: import json
  import os
  import re
  import graphviz
  import pytest
  from featuretools.feature_base import AggregationFeature, DirectFeature, FeatureOutputSlice, GroupByTransformFeature, IdentityFeature, TransformFeature, graph_feature
  from featuretools.primitives import Count, CumMax, Mode, NMostCommon, Year
label_desc: Use image node_id 2 for calling a global function with example usage: trans_feat(es) and returns: TransformFeature