code: def convert_leakyrelu(node, **kwargs):
      
      name, input_nodes, attrs = get_inputs(node, kwargs)
  
      act_type = attrs.get("act_type", "leaky")
      alpha = float(attrs.get("slope", 0.25))
  
      act_name = {"elu": "Elu", "leaky": "LeakyRelu", "prelu": "PRelu",
                  "selu": "Selu"}
  
      if act_type == "prelu" or act_type == "selu":
          node = onnx.helper.make_node(
              act_name[act_type],
              inputs=input_nodes,
              outputs=[name],
              name=name)
      else:
          node = onnx.helper.make_node(
              act_name[act_type],
              inputs=input_nodes,
              outputs=[name],
              name=name,
              alpha=alpha)
  
      return [node]
docs: Map MXNet's LeakyReLU operator attributes to onnx's Elu/LeakyRelu/PRelu operators
      based on the input node's attributes and return the created node.