code: def shapeToStr(tensor_shape, keep_minus_one=False):
      ret = ""
      first = True
      for e in tensor_shape.dim:
          if e.size != -1 or keep_minus_one:
              if first == False:
                  ret += ", "
              ret += str(e.size)
              first = False
      return ret
  
imports: import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.common.IR.graph_pb2 import TensorShape, AttrValue
  from mmdnn.conversion.common.DataStructure.graph import Graph, GraphNode
label_desc: Use image node_id 1 for calling the IRGraph obj's underlying member method code with example usage: obj.shapeToStr(tensor_shape, keep_minus_one) and returns: ret