def METHOD_NAME(self, hp, output_node, reduction_type):
    if reduction_type == FLATTEN:
        output_node = Flatten().build(hp, output_node)
    elif reduction_type == GLOBAL_MAX:
        output_node = self.global_max(output_node)
    elif reduction_type == GLOBAL_AVG:
        output_node = self.global_avg(output_node)
    return output_node