code: def get_archive_type(path):
      
      if not is_directory_archive(path):
          raise TypeError('Unable to determine the type of archive at path: %s' % path)
  
      try:
          ini_path = '/'.join([_convert_slashes(path), 'dir_archive.ini'])
          parser = _ConfigParser.SafeConfigParser()
          parser.read(ini_path)
  
          contents = parser.get('metadata', 'contents')
          return contents
      except Exception as e:
          raise TypeError('Unable to determine type of archive for path: %s' % path, e)
docs: Returns the contents type for the provided archive path.
  
      Parameters
      ----------
      path : string
          Directory to evaluate.
  
      Returns
      -------
      Returns a string of: sframe, sgraph, raises TypeError for anything else