code: def file_name_without_extension(path):
      
      if path is None:
          return None
      return os.path.splitext(os.path.basename(path))[0]
docs: Return the file name without extension.
  
      Examples: ::
  
          /foo/bar.baz => bar
          /foo/bar     => bar
          None         => None
  
      :param string path: the file path
      :rtype: string