code: def __init__(self, pattern, all):
      self.pattern_parts = _split_path(pattern)
      self.all = all
  
imports: import fnmatch
  import logging
  import re
  import os
  from guild import cli
  from guild import run_manifest
  from guild import util
  from .None import remote_impl_support
  from .None import runs_impl
label_desc: Use image node_id 1 to create a new _PatternFilter object  with example: obj = _PatternFilter(pattern, all)