code: def parse_permute_layer(
      keras_layer, input_names, input_shapes, data_reader
  ):
      assert keras_layer["class_name"] == "Permute"
  
      layer = parse_default_keras_layer(keras_layer, input_names)
  
      layer["class_name"] = "Transpose"
      dims = keras_layer["config"]["dims"]
      layer["perm"] = [dim - 1 for dim in keras_layer["config"]["dims"]]
  
      output_shape = [input_shapes[0][0]] + [
          input_shapes[0][s] for s in dims
      ]
  
      return layer, output_shape
  
file_path: hls4ml/hls4ml/converters/keras/reshape.py
imports: import numpy
  from hls4ml.converters.keras_to_hls import keras_handler, parse_default_keras_layer
  from hls4ml.converters.utils import parse_data_format
label_desc: Use image node_id 5 for calling a global function with example usage: parse_permute_layer(keras_layer, input_names, input_shapes, data_reader) and returns: layer,  output_shape