class_docstr: Unit test consistency
class_docstr_tok: ["Unit","test","consistency"]
code: def test_calculate_mean_distances(self):
      _, mean_distances = self.cns.calculate_all_distances(
          self.cns.methods, self.cns.weights
      )
      l2_dist = self.cns.calculate_pairwise_distances(
          self.cns.weights, 0, 1
      )
  
      self.cns.calculate_mean_distances(
          self.cns.methods, mean_distances, 0, 1, l2_dist
      )
  
      assert mean_distances.shape == (
          len(self.cns.methods),
          len(self.cns.methods),
      )
      assert (
          mean_distances.loc[self.cns.methods[0], self.cns.methods[1]]
          == mean_distances.loc[
              self.cns.methods[1], self.cns.methods[0]
          ]
      )
  
file_path: shapash/tests/unit_tests/explainer/test_consistency.py
imports: import itertools
  import numpy
  import pandas
  from sklearn.ensemble import RandomForestClassifier
  import unittest
  from shapash.explainer.consistency import Consistency
label_desc: Use image node_id 6 for calling the TestConsistency obj's underlying member method code with example usage: obj.test_calculate_mean_distances() without return types