def METHOD_NAME(args):
    A = lambda x: args.__dict__[x] if x in args.__dict__ else None
    order_name = A('name')
    db_path = A('db_path')
    output_file_path = A('output_file') or 'unknown_items_order.txt'
    if not db_path:
        raise ConfigError("Probably it will come as a surprise, but you *must* provide an input database path :/")
    filesnpaths.is_output_file_writable(output_file_path)
    item_order_names, item_orders_dict = dbops.get_item_orders_from_db(db_path)
    if not len(item_order_names):
        raise ConfigError("There are no item orders in this database :/")
    if not order_name:
        run.warning("You must choose an order. Here is what you have in here:", header="Available item orders", lc='yellow')
        for item_order in item_order_names:
            item_order_name, item_order_distance, item_order_clustering = item_order.split(':')
            nl_after = 1 if item_order == item_order_names[-1] else 0
            if item_order_distance:
                run.info_single("%s (newick; distance: %s, clustering: %s)." % (item_order_name, item_order_distance, item_order_clustering), nl_after=nl_after)
            else:
                run.info_single("%s (list)." % (item_order_name), nl_after=nl_after)
    items_order_of_interest = None
    for item_order in item_order_names:
        item_order_name, item_order_distance, item_order_clustering = item_order.split(':')
        if order_name == item_order_name:
            items_order_of_interest = item_orders_dict[item_order]
    if not items_order_of_interest:
        raise ConfigError("The item order '%s' is not one of the item orders in the database. This what you "
                          "have in there: '%s'." % (order_name, ', '.join(item_order_names)))
    order_data_type_newick = items_order_of_interest['type'] == 'newick'
    run.info("Database", db_path)
    run.info("Database type", utils.get_db_type(db_path))
    run.info("Order name", order_name)
    run.info("Order data type", 'newick' if order_data_type_newick else 'basic')
    if order_data_type_newick:
        open(output_file_path, 'w').write('%s\n' % items_order_of_interest['data'])
    else:
        open(output_file_path, 'w').write('%s\n' % '\n'.join(items_order_of_interest['data']))
    run.info("Output file", output_file_path, mc='red')