class_docstr: Remove reshape if final layer
class_docstr_tok: ["Remove","reshape","if","final","layer"]
code: def transform(self, model, node):
      if model.config.get_config_value("IOType") == "io_parallel":
          print(
              "WARNING: Final layer is a Reshape, which does not affect the output for io_parallel; removing it"
          )
          # remove, but don't rewire because it's the output layer
          model.remove_node(node, rewire=False)
          return True
      elif model.config.get_config_value("IOType") == "io_stream":
          print(
              "WARNING: Final layer is a Reshape, which may incur a large resource cost for io_stream; "
              "consider removing it"
          )
      return False
  
imports: from hls4ml.model.layers import Reshape
  from hls4ml.model.optimizer import OptimizerPass
label_desc: Use image node_id 2 for calling the RemoveFinalReshape obj's underlying member method code with example usage: obj.transform(model, node) and returns: False, True