code: def set_training_features(spec, training_features):
      for fname, ftype in training_features:
          training_input_ = spec.description.trainingInput.add()
          training_input_.name = fname
          if ftype:
              datatypes._set_datatype(training_input_.type, ftype)
  
      return spec
  
imports: from ..proto import Model_pb2
  from .None import _feature_management
  from .None import datatypes
label_desc: Use image node_id 4 for calling a global function with example usage: set_training_features(spec, training_features) and returns: spec