code: def make_decoder():
      """Creates a data decoder that that decodes ELWC records to tensors.
  
      A DataView (see "TfGraphDataViewProvider" component in the pipeline)
      will refer to this decoder. And any components that consumes the data
      with the DataView applied will use this decoder.
  
      Returns:
        A ELWC decoder.
      """
      (
          context_features,
          example_features,
          label_feature,
      ) = features.get_features()
  
      return struct2tensor_parsing_utils.ELWCDecoder(
          name="ELWCDecoder",
          context_features=context_features,
          example_features=example_features,
          size_feature_name=features.LIST_SIZE_FEATURE_NAME,
          label_feature=label_feature,
      )
  
file_path: tfx/tfx/examples/ranking/ranking_utils.py
imports: import tensorflow
  import tensorflow_ranking
  import tensorflow_transform
  from tfx.examples.ranking import features
  from tfx.examples.ranking import struct2tensor_parsing_utils
  from tfx_bsl.public import tfxio
label_desc: Use image node_id 1 for calling a global function with example usage: make_decoder() and returns: struct2tensor_parsing_utils