code: def apply_pass_and_basic_check(prog, pass_name):
      """
      Apply pass to the program
      """
      prev_prog = copy.deepcopy(prog)
      PASS_REGISTRY[pass_name](prog)
      block = prog.functions["main"]
      prev_block = prev_prog.functions["main"]
      assert_same_output_names(prev_prog, prog)
      assert_same_output_shapes(prev_prog, prog)
      return prev_prog, prev_block, block
  
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 14 for calling a global function with example usage: apply_pass_and_basic_check(prog, pass_name) and returns: prev_prog,  prev_block,  block