code: def maybe_delete_dir(self, name, path, dirs):
      path_parts = _split_path(path)
      if self.all or not _is_hidden_name(name):
          return
      if len(self.pattern_parts) >= len(path_parts):
          if not _is_hidden_name(
              self.pattern_parts[len(path_parts) - 1]
          ):
              dirs.remove(name)
  
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 3 for calling the _PatternFilter obj's underlying member method code with example usage: obj.maybe_delete_dir(name, path, dirs) without return types