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