code: def fuse_all_blocks(
      ops_arrangement, var_constraints, transform_pattern, prog
  ):
      for f in prog.functions.values():
          block_changed = True
          while block_changed:
              block_changed = _fuse_one_block(
                  f, ops_arrangement, var_constraints, transform_pattern
              )
  
imports: import itertools
  import warnings
  from functools import partial
  from coremltools.converters.mil.mil.passes.helper import block_context_manager
  from ...mil.passes import pass_registry
label_desc: Use image node_id 5 for calling a global function with example usage: fuse_all_blocks(ops_arrangement, var_constraints, transform_pattern, prog) without return types