code: def assert_same_output_shapes(prog1, prog2, func_name="main"):
      prog1_output_shapes = [o.shape for o in prog1[func_name].outputs]
      prog2_output_shapes = [o.shape for o in prog2[func_name].outputs]
      assert prog1_output_shapes == prog2_output_shapes
  
imports: import logging
  import numpy
  import copy
  import coremltools
  from coremltools import converters
  from coremltools.converters.mil import converter
  from coremltools.converters.mil.mil import Program, Function
  from coremltools.converters.mil.mil.passes.pass_registry import PASS_REGISTRY
  from coremltools._deps import _IS_MACOS
label_desc: Use image node_id 4 for calling a global function with example usage: assert_same_output_shapes(prog1, prog2, func_name) without return types