Processing of hierarchy format data
This function uses hierarchy format information to determine which records in the input data that have a hierarchical structure correspond to which records in the hierarchy format information. This function can then extract only records that have a certain format, or combine multiple data records within the group to output them as a single output record.