parameters: (self, leaf_index, tree_size)
return_statement: return self._calculate_inclusion_proof(
                  self.__leaves[:tree_size], leaf_index)
docstring: Returns an inclusion proof for leaf at |leaf_index|.
docstring_summary: Returns an inclusion proof for leaf at |leaf_index|.
docstring_tokens: Returns an inclusion proof for leaf at |leaf_index| .
function: def get_inclusion_proof(self, leaf_index, tree_size):
          """Returns an inclusion proof for leaf at |leaf_index|."""
          if tree_size > self.tree_size():
              raise ValueError("Specified tree size is beyond known tree: %d" %
                      tree_size)
          if leaf_index >= self.tree_size():
              raise ValueError("Requested proof for leaf beyond tree size: %d" %
                      leaf_index)
  
          return self._calculate_inclusion_proof(
                  self.__leaves[:tree_size], leaf_index)
function_tokens: def get_inclusion_proof ( self , leaf_index , tree_size ) : if tree_size > self . tree_size ( ) : raise ValueError ( "Specified tree size is beyond known tree: %d" % tree_size ) if leaf_index >= self . tree_size ( ) : raise ValueError ( "Requested proof for leaf beyond tree size: %d" % leaf_index ) return self . _calculate_inclusion_proof ( self . __leaves [ : tree_size ] , leaf_index )