code: def test_builder_to_backend_stress(self, use_cpu_only, backend, dim):
      shape = np.array([dim, dim])
      x_val = np.random.rand(*shape)
      weight_val = np.random.rand(*shape).astype(np.float32)
      bias_val = np.random.rand(dim).astype(np.float32)
      input_placeholders = {
          "x": mb.placeholder(shape=x_val.shape),
      }
      input_values = {"x": x_val}
  
      def build(x):
          return [mb.linear(x=x, weight=weight_val, bias=bias_val)]
  
      expected_outputs = [
          np.matmul(x_val, np.transpose(weight_val)) + bias_val
      ]
  
      expected_output_types = [
          o.shape[:] + (types.fp32,) for o in expected_outputs
      ]
  
      run_compare_builder(
          build,
          input_placeholders,
          input_values,
          expected_output_types,
          expected_outputs=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_linear.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 3 for calling the TestLinear obj's underlying member method code with example usage: obj.test_builder_to_backend_stress(use_cpu_only, backend, dim) and returns: list