code: def test_builder_to_backend_smoke(self, use_cpu_only, backend):
      x_val = np.array(
          [[[1.0, -7.0], [5.0, -6.0], [-3.0, -5.0]]], dtype=np.float32
      )
      input_placeholders = {"x": mb.placeholder(shape=x_val.shape)}
      input_values = {"x": x_val}
  
      def build(x):
          return [
              # V2->V1 lowering (op_mappings.py): if branch
              mb.layer_norm(x=x, axes=[2], epsilon=1e-4),
              # V2->V1 lowering (op_mappings.py): else branch
              mb.layer_norm(x=x, axes=[-2, -1], epsilon=1e-4),
          ]
  
      expected_output_types = [
          (1, 3, 2, types.fp32),
          (1, 3, 2, types.fp32),
      ]
      expected_outputs = [
          np.array(
              [
                  [
                      [0.9999969, -0.9999969],
                      [0.99999839, -0.99999839],
                      [0.99995005, -0.99995005],
                  ]
              ],
              dtype=np.float32,
          ),
          np.array(
              [
                  [
                      [0.8268512, -1.0630943],
                      [1.771824, -0.8268511],
                      [-0.11812156, -0.590608],
                  ]
              ],
              dtype=np.float32,
          ),
      ]
  
      run_compare_builder(
          build,
          input_placeholders,
          input_values,
          expected_output_types,
          expected_outputs,
          use_cpu_only=use_cpu_only,
          backend=backend,
      )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/ops/tests/test_normalization.py
imports: from coremltools.converters.mil import testing_reqs
  from coremltools.converters.mil.testing_reqs import *
  from .testing_utils import run_compare_builder
label_desc: Use image node_id 1 for calling the TestNormalizationLayerNorm obj's underlying member method code with example usage: obj.test_builder_to_backend_smoke(use_cpu_only, backend) and returns: list