def METHOD_NAME(args: argparse.Namespace, config: dict, **_) -> int:
    from jrnl.journals import open_journal
    from jrnl.plugins import get_importer
    # Requires opening the journal
    journal = open_journal(args.journal_name, config)
    format = args.export if args.export else "jrnl"
    get_importer(format).import_(journal, args.filename)
    return 0