code: def is_directory_archive(path):
      """
      Utility function that returns True if the path provided is a directory that has an SFrame or SGraph in it.
  
      SFrames are written to disk as a directory archive, this function identifies if a given directory is an archive
      for an SFrame.
  
      Parameters
      ----------
      path : string
          Directory to evaluate.
  
      Returns
      -------
      True if path provided is an archive location, False otherwise
      """
      if path is None:
          return False
  
      if not _os.path.isdir(path):
          return False
  
      ini_path = "/".join([_convert_slashes(path), "dir_archive.ini"])
  
      if not _os.path.exists(ini_path):
          return False
  
      if _os.path.isfile(ini_path):
          return True
      return False
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import os
  import urllib
  import re
  import itertools
  import uuid
  import datetime
  import sys
  from ._sframe_generation import generate_random_sframe
  from ._sframe_generation import generate_random_regression_sframe
  from ._sframe_generation import generate_random_classification_sframe
  from ._type_checks import _raise_error_if_not_of_type
  from ._type_checks import _is_non_string_iterable
  from ._progress_table_printer import ProgressTablePrinter
label_desc: Use image node_id 6 for calling a global function with example usage: is_directory_archive(path) and returns: False, False, False, False, True