class_docstr: shared implementation for filesystem path objects.
docstr: return true if the basename/fullname matches the glob-'pattern'.
  
  valid pattern characters::
  
      *       matches everything
      ?       matches any single character
      [seq]   matches any character in seq
      [!seq]  matches any char not in seq
  
  If the pattern contains a path-separator then the full path
  is used for pattern matching and a '*' is prepended to the
  pattern.
  
  if the pattern doesn't contain a path-separator the pattern
  is only matched against the basename.
docstr_tok: ["return","true","if","the","basename\/fullname","matches","the","glob-'pattern","'",".","valid","pattern","characters",":",":","*","matches","everything","?","matches","any","single","character","[","seq","]","matches","any","character","in","seq","[","!","seq","]","matches","any","char","not","in","seq","If","the","pattern","contains","a","path-separator","then","the","full","path","is","used","for","pattern","matching","and","a","'","*","'","is","prepended","to","the","pattern",".","if","the","pattern","does","n't","contain","a","path-separator","the","pattern","is","only","matched","against","the","basename","."]
code: def fnmatch(self, pattern):
      """return true if the basename/fullname matches the glob-'pattern'.
  
      valid pattern characters::
  
          *       matches everything
          ?       matches any single character
          [seq]   matches any character in seq
          [!seq]  matches any char not in seq
  
      If the pattern contains a path-separator then the full path
      is used for pattern matching and a '*' is prepended to the
      pattern.
  
      if the pattern doesn't contain a path-separator the pattern
      is only matched against the basename.
      """
      return FNMatcher(pattern)(self)
  
imports: import warnings
  import os
  import sys
  import posixpath
  import fnmatch
  import py
label_desc: Use image node_id 15 for calling the PathBase obj's underlying member method code with example usage: obj.fnmatch(pattern) and returns: FNMatcher