class_docstr: Creates a new field which contains a list of features.
  
  Parameters
  ----------
  output_field
      Field name for output
  input_fields
      Fields to combine into list
  drop_inputs
      If true the input fields will be removed from the result.
class_docstr_tok: ["Creates","a","new","field","which","contains","a","list","of","features",".","Parameters","--","--","--","--","--","output_field","Field","name","for","output","input_fields","Fields","to","combine","into","list","drop_inputs","If","true","the","input","fields","will","be","removed","from","the","result","."]
code: def transform(self, data: DataEntry) -> DataEntry:
      data[self.output_field] = [
          data[fname] for fname in self.input_fields
      ]
      for fname in self.cols_to_drop:
          del data[fname]
      return data
  
imports: from typing import Callable, Iterator, List, Optional, Tuple, Type
  import numpy
  from toolz import valmap
  from gluonts.core.component import validated, tensor_to_numpy
  from gluonts.dataset.common import DataEntry
  from gluonts.exceptions import assert_data_error
  from ._base import FlatMapTransformation, MapTransformation, SimpleTransformation
label_desc: Use image node_id 2 for calling the ListFeatures obj's underlying member method code with example usage: obj.transform(data) and returns: data