code: def _add_tf_shape(m, ints):
      sh = tensor_shape_pb2.TensorShapeProto()
      for i in ints:
          dim = tensor_shape_pb2.TensorShapeProto.Dim()
          dim.size = i
          sh.dim.extend([dim])
      m["_output_shapes"].list.shape.extend([sh])
  
imports: import copy
  import logging
  import os
  from caffe2.proto import caffe2_pb2
  from caffe2.python import core, workspace
label_desc: Use image node_id 10 for calling a global function with example usage: _add_tf_shape(m, ints) without return types