docstr: Returns the top-down sequence of items from self to
  (but not including) the root node.
docstr_tok: ["Returns","the","top-down","sequence","of","items","from","self","to","(","but","not","including",")","the","root","node","."]
code: def itempath_from_root(self):
      """Returns the top-down sequence of items from self to
      (but not including) the root node."""
      path = []
      if self.item is None:
          return path
  
      node = self.parent
      while node.item is not None:
          path.append(node.item)
          node = node.parent
  
      path.reverse()
      return path
  
file_path: mlxtend/mlxtend/frequent_patterns/fpcommon.py
imports: import collections
  import warnings
  import numpy
  import pandas
  from pandas import __version__
label_desc: Use image node_id 2 for calling the FPNode obj's underlying member method code with example usage: obj.itempath_from_root() and returns: path, path