original_docstring: 
      Read a path to return the directory portion.
      If the path looks like a file, will return the dirname.
      Otherwise, will leave the path untouched.
      
docstring: Read a path to return the directory portion.
  If the path looks like a file, will return the dirname.
  Otherwise, will leave the path untouched.
docstring_tokens: Read a path to return the directory portion . If the path looks like a file will return the dirname . Otherwise will leave the path untouched .
code: def read_dir(some_path):
      """
      Read a path to return the directory portion.
      If the path looks like a file, will return the dirname.
      Otherwise, will leave the path untouched.
      """
      return path.dirname(some_path) if is_file_like(some_path) else some_path
code_tokens: def read_dir ( some_path ) : return path . dirname ( some_path ) if is_file_like ( some_path ) else some_path
short_docstring: Read a path to return the directory portion.
short_docstring_tokens: Read a path to return the directory portion .
comment: """
      Read a path to return the directory portion.
      If the path looks like a file, will return the dirname.
      Otherwise, will leave the path untouched.
      """