code: def _scoring_function(context_features, example_features, mode):
      del context_features
      del mode
      batch_size = tf.shape(input=example_features["f1"])[0]
      return tf.ones([batch_size, 1], dtype=tf.float32)
  
imports: import os
  from absl.testing import parameterized
  import tensorflow
  from tensorflow import estimator
  import tensorflow_ranking
  from google.protobuf import text_format
  from tensorflow_ranking.extension import pipeline
  from tensorflow_serving.apis import input_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: _scoring_function(context_features, example_features, mode) and returns: tf