code: def _multiply_by_two_transform_fn(features, mode):
      for feature, tensor in six.iteritems(features):
          features[feature] = 2 * tensor
  
      context, example = feature_lib.encode_listwise_features(
          features=features,
          context_feature_columns=_context_feature_columns(),
          example_feature_columns=_example_feature_columns(),
          mode=mode,
      )
      return context, example
  
imports: import os
  from absl.testing import parameterized
  import six
  import tensorflow
  from tensorflow import estimator
  from google.protobuf import text_format
  from tensorflow_ranking.python import data
  from tensorflow_ranking.python import estimator
  from tensorflow_ranking.python import feature
  from tensorflow_serving.apis import input_pb2
label_desc: Use image node_id 7 for calling a global function with example usage: _multiply_by_two_transform_fn(features, mode) and returns: context,  example