docstr: Test long_tail_plot function
  
  This test assumes the plot output is correct
docstr_tok: ["Test","long_tail_plot","function","This","test","assumes","the","plot","output","is","correct"]
code: def test_long_tail_plot(self, mock_plt):
      """
      Test long_tail_plot function
  
      This test assumes the plot output is correct
      """
  
      # GIVEN long_tail_plot inputs
      test_lst_ratings = [
          {
              "userId": 156,
              "movieId": 1,
              "rating": 5.0,
              "timestamp": 1037739266,
          },
          {
              "userId": 156,
              "movieId": 2,
              "rating": 5.0,
              "timestamp": 1040937649,
          },
          {
              "userId": 156,
              "movieId": 4,
              "rating": 3.0,
              "timestamp": 1038801803,
          },
          {
              "userId": 156,
              "movieId": 5,
              "rating": 3.0,
              "timestamp": 1040944583,
          },
          {
              "userId": 156,
              "movieId": 6,
              "rating": 4.0,
              "timestamp": 1037822117,
          },
      ]
  
      test_df_ratings = pd.DataFrame(test_lst_ratings)
  
      # WHEN plots.long_tail_plot is run
      plots.long_tail_plot(
          df=test_df_ratings,
          item_id_column="movieId",
          interaction_type="movie ratings",
          percentage=0.5,
          x_labels=False,
      )
  
      # THEN validate if plot is called
      self.assertTrue(mock_plt.show.called)
  
file_path: recmetrics/tests/test_plots.py
imports: import unittest
  from unittest import mock
  import numpy
  import pandas
  from recmetrics import plots
label_desc: Use image node_id 1 for calling the TestPlots obj's underlying member method code with example usage: obj.test_long_tail_plot(mock_plt) without return types