parameters: (file_path)
docstring: A factory method which returns the right LogSaver class for the given file path.
  
          A list of supported file path includes:
          1) local file, which is supported by FileLogSaver;
          2) s3 file, which is supported by S3FileLogSaver.
  
          Args:
              file_path: A string presentation of the file path.
  
          Returns:
              A LogSaver class instance.
docstring_summary: A factory method which returns the right LogSaver class for the given file path.
docstring_tokens: A factory method which returns the right LogSaver class for the given file path .
function: def from_path(file_path):
          """A factory method which returns the right LogSaver class for the given file path.
  
          A list of supported file path includes:
          1) local file, which is supported by FileLogSaver;
          2) s3 file, which is supported by S3FileLogSaver.
  
          Args:
              file_path: A string presentation of the file path.
  
          Returns:
              A LogSaver class instance.
          """
          if file_path.startswith('s3n://'):
              return S3FileLogSaver(file_path)
          else:
              return FileLogSaver(file_path)
function_tokens: def from_path ( file_path ) : if file_path . startswith ( 's3n://' ) : return S3FileLogSaver ( file_path ) else : return FileLogSaver ( file_path )