code: def saver_for_file(filename):
      
      saver = javabridge.static_call(
          "weka/core/converters/ConverterUtils", "getSaverForFile",
          "(Ljava/lang/String;)Lweka/core/converters/AbstractFileSaver;", filename)
      if saver is None:
          return None
      else:
          return Saver(jobject=saver)
docs: Returns a Saver that can load the specified file, based on the file extension. None if failed to determine.
  
      :param filename: the filename to get the saver for
      :type filename: str
      :return: the associated saver instance or None if none found
      :rtype: Saver