code: def Flatten(shapeT, axis=None):
      if axis is None:
          axis = 1
  
      firstDim = 1
      secondDim = 1
      for i in range(len(shapeT)):
          if i < axis:
              firstDim *= shapeT[i]
          else:
              secondDim *= shapeT[i]
  
      if axis > 0:
          return [firstDim, secondDim]
      else:
          return [secondDim]
  
file_path: MMdnn/mmdnn/conversion/onnx/shape_inference.py
label_desc: Use image node_id 11 for calling a global function with example usage: Flatten(shapeT, axis) and returns: list, list