code: def assert_same_input_types(prog1, prog2, func_name="main"):
      prog1_input_types = [
          x.dtype for x in list(prog1[func_name].inputs.values())
      ]
      prog2_input_types = [
          x.dtype for x in list(prog2[func_name].inputs.values())
      ]
      assert prog1_input_types == prog2_input_types
  
imports: import itertools
  import copy
  import os
  from functools import partial
  from pathlib import Path
  from typing import Dict, List, Tuple
  import numpy
  import pytest
  from PIL import Image
  import coremltools
  import coremltools.models.utils
  from coremltools._deps import _IS_MACOS
  from coremltools.converters.mil.mil import Block, Function, Program
  from coremltools.converters.mil.mil.passes.defs.preprocess import NameSanitizer
  from coremltools.converters.mil.mil.passes.defs.quantization import AbstractQuantizationPass
  from coremltools.converters.mil.mil.passes.pass_registry import PASS_REGISTRY
  from coremltools.proto import FeatureTypes_pb2
label_desc: Use image node_id 7 for calling a global function with example usage: assert_same_input_types(prog1, prog2, func_name) without return types