code: def _base_path_filter(args):
      if args.path:
          if _is_pattern(args.path):
              return _PatternFilter(args.path, args.all)
          return _PathFilter(args.path, args.all)
      return _DefaultFilter(args.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 10 for calling a global function with example usage: _base_path_filter(args) and returns: _DefaultFilter, _PathFilter, _PatternFilter