def METHOD_NAME(in_wrapper):
    print('on_post_process')
    # Print details about the outputs and record the first static mesh we find
    sm_index = None
    sm_identifier = None
    # in_wrapper.on_post_processing_delegate.remove_callable(on_post_process)
    num_outputs = in_wrapper.get_num_outputs()
    print('num_outputs: {}'.format(num_outputs))
    if num_outputs > 0:
        for output_idx in range(num_outputs):
            identifiers = in_wrapper.get_output_identifiers_at(output_idx)
            output_type = in_wrapper.get_output_type_at(output_idx)
            print('\toutput index: {}'.format(output_idx))
            print('\toutput type: {}'.format(output_type))
            print('\tnum_output_objects: {}'.format(len(identifiers)))
            if identifiers:
                for identifier in identifiers:
                    output_object = in_wrapper.get_output_object_at(output_idx, identifier)
                    output_component = in_wrapper.get_output_component_at(output_idx, identifier)
                    is_proxy = in_wrapper.is_output_current_proxy_at(output_idx, identifier)
                    print('\t\tidentifier: {}'.format(identifier))
                    print('\t\toutput_object: {}'.format(output_object.get_name() if output_object else 'None'))
                    print('\t\toutput_component: {}'.format(output_component.get_name() if output_component else 'None'))
                    print('\t\tis_proxy: {}'.format(is_proxy))
                    print('')
                    if (output_type == unreal.HoudiniOutputType.MESH and 
                            isinstance(output_object, unreal.StaticMesh)):
                        sm_index = output_idx
                        sm_identifier = identifier
    # Bake the first static mesh we found to the CB
    if sm_index is not None and sm_identifier is not None:
        print('baking {}'.format(sm_identifier))
        success = in_wrapper.bake_output_object_at(sm_index, sm_identifier)
        print('success' if success else 'failed')
    # Delete the instantiated asset
    in_wrapper.delete_instantiated_asset()
    global _g_wrapper
    _g_wrapper = None