code: def _try_to_transform(sigmoid_op, mul_op, block):
      out_name = mul_op.outputs[0].name
      # create a new silu op
      x = mb.silu(x=sigmoid_op.x, name=out_name, before_op=sigmoid_op)
      mul_op.enclosing_block.replace_uses_of_var_after_op(
          anchor_op=mul_op, old_var=mul_op.outputs[0], new_var=x
      )
      # Remove all the ops at once
      block.remove_ops([sigmoid_op, mul_op])
      return True
  
file_path: coremltools/coremltools/converters/mil/backend/mil/passes/fuse_activation_silu.py
imports: from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil.passes.graph_pass import AbstractGraphPass
  from coremltools.converters.mil.mil.passes.helper import block_context_manager
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
label_desc: Use image node_id 2 for calling a global function with example usage: _try_to_transform(sigmoid_op, mul_op, block) and returns: True