code: def create_p_list_mle_lambda_weight(list_size):
      """Creates _LambdaWeight based on Position-Aware ListMLE paper.
  
      Produces a weight based on the formulation presented in the
      "Position-Aware ListMLE" paper (Lan et al.) and available using
      create_p_list_mle_lambda_weight() factory function above.
  
      Args:
        list_size: Size of the input list.
  
      Returns:
        A _LambdaWeight for Position-Aware ListMLE.
      """
      return losses_impl.ListMLELambdaWeight(
          rank_discount_fn=lambda rank: tf.pow(2.0, list_size - rank)
          - 1.0
      )
  
imports: from typing import Any, Callable, Dict, List, Mapping, Optional, Sequence, Tuple, Union
  import tensorflow
  from tensorflow_ranking.python import losses_impl
  from tensorflow_ranking.python import utils
label_desc: Use image node_id 5 for calling a global function with example usage: create_p_list_mle_lambda_weight(list_size) and returns: losses_impl