class_docstr: Replaces the output variable of Reshape (flatten) layer with an inplace variable when using io_stream.
  
  This optimizer avoids the expensive repacking of the stream when Reshape layer flattens the tensor to 1d.
code: def transform(self, model, node):
      if model.config.get_config_value("IOType") != "io_stream":
          return False
  
      outvar = node.get_output_variable()
      invar = node.get_input_variable()
      newoutvar = InplaceTensorVariable(outvar, invar)
      node.set_attr(node.outputs[0], newoutvar)
      return False
  
imports: from hls4ml.model.layers import Reshape
  from hls4ml.model.optimizer import OptimizerPass
  from hls4ml.model.types import InplaceTensorVariable
label_desc: Use image node_id 2 for calling the InplaceStreamFlatten obj's underlying member method code with example usage: obj.transform(model, node) and returns: False, False