code: def enable_sframe_serialization(serialization_directory):
      """
      Enables pickling of SFrames through the use of a user-set directory to
      store the objects.  This directory must be set through his method for
      deserialization to work.  It may be a different directory for serialization and
      unserialization.
  
      When an SFrame is pickled, a copy of the SFrame is saved in this
      directory and a reference handle to a randomly generated subdirectory is saved in the
      pickle.  As long as that reference handle is present in the set directory, then
      deserialization should work.
  
      Note that the pickle files themselves do not contain the data -- both the directory contents
      and the pickle need to be present for deserialization to work.
      """
  
      import os
  
      if _version_info[0] == 2:
          raise RuntimeError(
              "SFrame serialization not supported in python 2."
          )
      global __serialization_directory
      if serialization_directory is None:
          __serialization_directory = None
          return
  
      __serialization_directory = os.path.abspath(
          os.path.expanduser(serialization_directory)
      )
  
      # Make sure the directory exists.
      if not os.path.exists(__serialization_directory):
          # Attempt to create it
          os.makedirs(__serialization_directory)
  
      # Is it a directory?
      elif not os.path.isdir(__serialization_directory):
          raise ValueError(
              "%s is not a directory." % __serialization_directory
          )
  
imports: from sys import version_info
label_desc: Use image node_id 1 for calling a global function with example usage: enable_sframe_serialization(serialization_directory) without return types