def METHOD_NAME() -> None:
    args = get_args()
    if args.contigs_db:
        external_genome = metabolicmodel.ExternalGenome(
            args.contigs_db,
            db_superdir=args.db_superdir,
            remove_missing_objective_metabolites=args.remove_missing_objective_metabolites
        )
        external_genome.write_cobrapy_json(args.output_file)
    elif args.genomes_storage and args.pan_db:
        pangenome = metabolicmodel.Pangenome(
            args.genomes_storage,
            args.pan_db,
            collection_name=args.collection_name,
            bin_id=args.bin_id,
            db_superdir=args.db_superdir,
            discard_ties=args.discard_ties,
            consensus_threshold=args.consensus_threshold,
            remove_missing_objective_metabolites=args.remove_missing_objective_metabolites
        )
        pangenome.write_cobrapy_json(args.output_file)