class_docstr: Unit test consistency
class_docstr_tok: ["Unit","test","consistency"]
code: def test_compile(self):
      assert isinstance(self.cns.methods, list)
      assert len(self.cns.methods) == len(self.contributions)
      assert isinstance(self.cns.weights, list)
      assert self.cns.weights[0].shape == self.w1.shape
      assert all(
          x.shape == self.cns.weights[0].shape for x in self.cns.weights
      )
  
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 2 for calling the TestConsistency obj's underlying member method code with example usage: obj.test_compile() without return types