class_docstr: Unit test consistency
class_docstr_tok: ["Unit","test","consistency"]
code: def test_calculate_all_distances(self):
      (
          all_comparisons,
          mean_distances,
      ) = self.cns.calculate_all_distances(
          self.cns.methods, self.cns.weights
      )
  
      num_comb = len(list(itertools.combinations(self.cns.methods, 2)))
  
      assert all_comparisons.shape == (num_comb * self.X.shape[0], 4)
      assert isinstance(mean_distances, pd.DataFrame)
      assert mean_distances.shape == (
          len(self.cns.methods),
          len(self.cns.methods),
      )
  
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 4 for calling the TestConsistency obj's underlying member method code with example usage: obj.test_calculate_all_distances() without return types