code: def convert_slice_channel(node, **kwargs):
      """Map MXNet's SliceChannel operator attributes to onnx's Squeeze or Split
      operator based on squeeze_axis attribute
      and return the created node.
      """
      from onnx.helper import make_node
  
      name, input_nodes, attrs = get_inputs(node, kwargs)
  
      num_outputs = int(attrs.get("num_outputs"))
      axis = int(attrs.get("axis", 1))
      squeeze_axis = attrs.get("squeeze_axis", "False")
  
      create_tensor([axis], name + "_axis", kwargs["initializer"])
  
      nodes = []
      if squeeze_axis in ["True", "1"]:
          nodes += [
              make_node(
                  "Split",
                  [input_nodes[0]],
                  [name + str(i) + "_" for i in range(num_outputs)],
                  axis=axis,
              )
          ]
          for i in range(num_outputs):
              nodes += [
                  make_node(
                      "Squeeze",
                      [name + str(i) + "_", name + "_axis"],
                      [name + str(i)],
                  )
              ]
      else:
          nodes += [
              make_node(
                  "Split",
                  [input_nodes[0]],
                  [name + str(i) for i in range(num_outputs)],
                  axis=axis,
              )
          ]
  
      return nodes
  
imports: import re
  import logging
  import numpy
  from .._export_onnx import MXNetGraph
label_desc: Use image node_id 26 for calling a global function with example usage: convert_slice_channel(node) and returns: nodes