code: def generate_term_types(feature_types, term_features):
      return [
          feature_types[grp[0]] if len(grp) == 1 else "interaction"
          for grp in term_features
      ]
  
imports: from math import ceil, isnan, isinf, exp, log
  from ...utils._native import Native
  from ._tensor import restore_missing_value_zeros
  import numpy
  import warnings
  from itertools import islice
  import logging
label_desc: Use image node_id 7 for calling a global function with example usage: generate_term_types(feature_types, term_features) and returns: unknown