code: def test_builder_to_backend_smoke(self, use_cpu_only, backend):
      x_val = (
          np.array(list(range(24)))
          .reshape((2, 3, 4))
          .astype(np.float32)
      )
      begin_val = np.array([1, 1, 1], dtype=np.int32)
      input_placeholders = {
          "x": mb.placeholder(shape=x_val.shape),
          "begin": mb.placeholder(
              shape=begin_val.shape, dtype=types.int32
          ),
      }
      input_values = {"x": x_val, "begin": begin_val}
  
      def build_non_single(x, begin):
          return [
              mb.slice_by_size(x=x, begin=begin, size=[1, 2, 3]),
          ]
  
      def build_single(x, begin):
          return [
              mb.slice_by_size(x=x, begin=begin, size=[-1, 2, -1]),
          ]
  
      expected_output_types = [(1, 2, 3, types.fp32)]
      expected_outputs = [
          np.array([[[17, 18, 19], [21, 22, 23]]], dtype=np.float32)
      ]
      run_compare_builder(
          build_non_single,
          input_placeholders,
          input_values,
          expected_output_types,
          expected_outputs,
          use_cpu_only=use_cpu_only,
          frontend_only=False,
          backend=backend,
      )
  
      expected_output_types = [(UNK_SYM, 2, UNK_SYM, types.fp32)]
      run_compare_builder(
          build_single,
          input_placeholders,
          input_values,
          expected_output_types,
          expected_outputs,
          use_cpu_only=use_cpu_only,
          frontend_only=False,
          backend=backend,
      )
  
imports: from coremltools.converters.mil import testing_reqs
  from coremltools.converters.mil.mil import get_new_symbol, get_new_variadic_symbol
  from coremltools.converters.mil.testing_reqs import *
  from .testing_utils import UNK_SYM, UNK_VARIADIC, run_compare_builder
label_desc: Use image node_id 1 for calling the TestSliceBySize obj's underlying member method code with example usage: obj.test_builder_to_backend_smoke(use_cpu_only, backend) and returns: list, list