class_docstr: shared implementation for filesystem path objects.
docstr: dirname part of path. 
docstr_tok: ["dirname","part","of","path","."]
code: def dirname(self):
      """dirname part of path."""
      return self._getbyspec("dirname")[0]
  
imports: import warnings
  import os
  import sys
  import posixpath
  import fnmatch
  import py
label_desc: Use image node_id 3 for calling the PathBase obj's underlying member method code with example usage: obj.dirname() and returns: self