code: def display_path_as_ul(category, using='categories.Category'):
      
      if isinstance(category, CategoryBase):
          cat = category
      else:
          cat = get_category(category)
  
      return {'category': cat, 'path': cat.get_ancestors() or []}
docs: Render the category with ancestors, but no children using the
      ``categories/ul_tree.html`` template.
  
      Example::
  
          {% display_path_as_ul "/Grandparent/Parent" %}
  
      or ::
  
          {% display_path_as_ul category_obj %}
  
      Returns::
  
          <ul>
              <li><a href="/categories/">Top</a>
              <ul>
                  <li><a href="/categories/grandparent/">Grandparent</a></li>
              </ul>
              </li>
          </ul>