code: def _convert_output_shape(cls, kwargs, node):
      shape = TensorShape()
      dim = shape.dim.add()
      dim.size = -1
  
      if len(node.output_shape) > 2:
          for i in node.output_shape[2:]:
              dim = shape.dim.add()
              dim.size = i
          dim = shape.dim.add()
          dim.size = node.output_shape.channels
      else:
          dim = shape.dim.add()
          dim.size = node.output_shape[1]
      kwargs["_output_shapes"] = [shape]
  
imports: from __future__ import absolute_import
  from __future__ import division
  import numpy
  from mmdnn.conversion.caffe.errors import ConversionError
  from mmdnn.conversion.caffe.common_graph import Node
  from mmdnn.conversion.caffe.network import DEFAULT_PADDING
  from mmdnn.conversion.caffe.utils import get_lower_case
  from mmdnn.conversion.common.IR.graph_pb2 import TensorShape
label_desc: Use image node_id 1 for calling the NodeMapper obj's underlying member method code with example usage: obj._convert_output_shape(cls, kwargs, node) without return types