def METHOD_NAME(self, entries, _, options_map):
    """
        2017-11-10 open Liabilities:Credit-Cards:Spouse:Citi
        2017-11-10 open Liabilities:Credit-Cards:Spouse:Citi-CustomCash
        2017-11-10 open Liabilities:Credit-Cards:Spouse:Citi:Addon
        2018-11-10 close Liabilities:Credit-Cards:Spouse:Citi
    """
    new_entries, _ = close_tree.close_tree(entries, options_map)
    self.assertEqualEntries("""
        2017-11-10 open Liabilities:Credit-Cards:Spouse:Citi
        2017-11-10 open Liabilities:Credit-Cards:Spouse:Citi-CustomCash
        2017-11-10 open Liabilities:Credit-Cards:Spouse:Citi:Addon
        2018-11-10 close Liabilities:Credit-Cards:Spouse:Citi
        2018-11-10 close Liabilities:Credit-Cards:Spouse:Citi:Addon
    """, new_entries)