class_docstr: Unit test consistency
class_docstr_tok: ["Unit","test","consistency"]
code: def test_check_consistency_contributions(self):
      weights = [self.w1, self.w2, self.w3]
  
      if weights[0].ndim == 1:
          raise ValueError(
              "Multiple datapoints are required to compute the metric"
          )
      if not all(isinstance(x, pd.DataFrame) for x in weights):
          raise ValueError("Contributions must be pandas DataFrames")
      if not all(x.shape == weights[0].shape for x in weights):
          raise ValueError("Contributions must be of same shape")
      if not all(
          x.columns.tolist() == weights[0].columns.tolist()
          for x in weights
      ):
          raise ValueError(
              "Columns names are different between contributions"
          )
      if not all(
          x.index.tolist() == weights[0].index.tolist() for x in weights
      ):
          raise ValueError(
              "Index names are different between contributions"
          )
  
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 3 for calling the TestConsistency obj's underlying member method code with example usage: obj.test_check_consistency_contributions() without return types