code: def handle_unused_inputs_func(f):
      unused_inputs = [
          v for v_name, v in f.inputs.items() if len(v.child_ops) == 0
      ]
  
      with f:
          for v in unused_inputs:
              # copy twice since NN layer cannot have input name == output name
              v_tmp = mb.identity(x=v, name=v.name + "_tmp")
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
label_desc: Use image node_id 1 for calling a global function with example usage: handle_unused_inputs_func(f) without return types