code: def test_create_p_list_mle_lambda_weight(self):
      labels = [[1.0, 2.0]]
      ranks = [[1, 2]]
      lambda_weight = ranking_losses.create_p_list_mle_lambda_weight(2)
      self.assertAllClose(
          lambda_weight.individual_weights(labels, ranks).numpy(),
          [[1.0, 0.0]],
      )
  
imports: import math
  import tensorflow
  from tensorflow_ranking.python import losses
  from tensorflow_ranking.python import losses_impl
label_desc: Use image node_id 24 for calling the LossesTest obj's underlying member method code with example usage: obj.test_create_p_list_mle_lambda_weight() without return types