docstr: Test personalization function
docstr_tok: ["Test","personalization","function"]
code: def test_personalization(self):
      """
      Test personalization function
      """
  
      # GIVEN a list of lists of predictions
      test_predictions = [
          ["1", "2", "C", "D"],
          ["4", "3", "m", "X"],
          ["7", "B", "t", "X"],
      ]
  
      # WHEN metrics.personalization is run
      personalization_score = metrics.personalization(
          predicted=test_predictions
      )
  
      # THEN the personalization score should be within the expected value
      self.assertAlmostEqual(personalization_score, 0.916, places=2)
  
file_path: recmetrics/tests/test_metrics.py
imports: import unittest
  from unittest import mock
  import pandas
  from recmetrics import metrics
label_desc: Use image node_id 6 for calling the TestMetrics obj's underlying member method code with example usage: obj.test_personalization() without return types