code: def _scrub_composite_distance_features(distance, feature_denylist):
      """
      Remove feature names from the feature lists in a composite distance
      function.
      """
      dist_out = []
  
      for i, d in enumerate(distance):
          ftrs, dist, weight = d
          new_ftrs = [x for x in ftrs if x not in feature_denylist]
          if len(new_ftrs) > 0:
              dist_out.append([new_ftrs, dist, weight])
  
      return dist_out
  
file_path: turicreate/src/python/turicreate/toolkits/distances/_util.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import copy
  import array
  import six
  from operator import iadd
  import turicreate
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: _scrub_composite_distance_features(distance, feature_denylist) and returns: dist_out