code: def test_tutorial():
      @mb.program(input_specs=[mb.TensorSpec(shape=(1, 100, 100, 3))])
      def prog(x):
          x = mb.relu(x=x, name="relu")
          x = mb.transpose(x=x, perm=[0, 3, 1, 2], name="transpose")
          x = mb.reduce_mean(
              x=x, axes=[2, 3], keep_dims=False, name="reduce"
          )
          x = mb.log(x=x, name="log")
          y = mb.add(x=1, y=2)
          return x
  
      # Convert and verify
      mlmodel = ct.convert(prog)
  
      # running predict() is only supported on macOS
      if ct.utils._is_macos():
          prediction = mlmodel.predict(
              {"x": np.random.rand(1, 100, 100, 3).astype(np.float32)}
          )
          assert len(prediction) == 1
  
imports: import copy
  import os
  import tempfile
  import numpy
  import pytest
  import coremltools
  from coremltools._deps import _HAS_TORCH
  from coremltools.converters.mil import Builder
  from coremltools.converters.mil.mil import Function, Program, get_new_symbol
  from coremltools.converters.mil.testing_utils import get_op_types_in_program
label_desc: Use image node_id 1 for calling the TestMILExamples obj's underlying member method code with example usage: obj.test_tutorial() and returns: x