code: def list_to_shape(shape):
      ret = graph_pb2.TensorShape()
      for dim in shape:
          new_dim = ret.dim.add()
          new_dim.size = dim
      return ret
  
file_path: MMdnn/mmdnn/conversion/common/utils.py
imports: from __future__ import division
  import os
  import sys
  import numpy
  from six import text_type, binary_type, integer_types
  import mmdnn.conversion.common.IR.graph_pb2
label_desc: Use image node_id 7 for calling a global function with example usage: list_to_shape(shape) and returns: ret