class_docstr: An AttrTree offers convenient, multi-level attribute access for
  collections of objects. AttrTree objects may also be combined
  together using the update method or merge classmethod. Here is an
  example of adding a ViewableElement to an AttrTree and accessing it:
  
  >>> t = AttrTree()
  >>> t.Example.Path = 1
  >>> t.Example.Path                             #doctest: +ELLIPSIS
  1
class_docstr_tok: ["An","AttrTree","offers","convenient",",","multi-level","attribute","access","for","collections","of","objects",".","AttrTree","objects","may","also","be","combined","together","using","the","update","method","or","merge","classmethod",".","Here","is","an","example","of","adding","a","ViewableElement","to","an","AttrTree","and","accessing","it",":",">",">",">","t","=","AttrTree","(",")",">",">",">","t.Example.Path","=","1",">",">",">","t.Example.Path","#","doctest",":","+ELLIPSIS","1"]
docstr: Filters the loaded AttrTree using the supplied path_filters.
docstr_tok: ["Filters","the","loaded","AttrTree","using","the","supplied","path_filters","."]
code: def filter(self, path_filters):
      """
      Filters the loaded AttrTree using the supplied path_filters.
      """
      if not path_filters:
          return self
  
      # Convert string path filters
      path_filters = [
          tuple(pf.split(".")) if not isinstance(pf, tuple) else pf
          for pf in path_filters
      ]
  
      # Search for substring matches between paths and path filters
      new_attrtree = self.__class__()
      for path, item in self.data.items():
          if any(
              [
                  all([subpath in path for subpath in pf])
                  for pf in path_filters
              ]
          ):
              new_attrtree.set_path(path, item)
  
      return new_attrtree
  
imports: from .None import util
  from .pprint import PrettyPrinter
label_desc: Use image node_id 10 for calling the AttrTree obj's underlying member method code with example usage: obj.filter(path_filters) and returns: new_attrtree, self