code: def test_tensor_filling_ops_c_backend(self):
      for dtype in [
          onnx.TensorProto.FLOAT,
          onnx.TensorProto.DOUBLE,
          onnx.TensorProto.BOOL,
          onnx.TensorProto.INT8,
          onnx.TensorProto.INT16,
          onnx.TensorProto.INT32,
          onnx.TensorProto.INT64,
          onnx.TensorProto.UINT8,
          onnx.TensorProto.UINT16,
          onnx.TensorProto.UINT32,
      ]:
          shape = (1, 2, 3)
          vals = np.random.randn(*shape)
          if dtype != onnx.TensorProto.BOOL:
              vals *= 5
          vals = vals.astype(mapping.TENSOR_TYPE_TO_NP_TYPE[dtype])
          tensor = make_tensor(
              name="test-tensor-{}".format(dtype),
              data_type=dtype,
              dims=[1, 2, 3],
              vals=vals.flatten().tolist(),
          )
          b = C.Caffe2Backend()
          op = caffe2_pb2.OperatorDef()
          op.ParseFromString(
              b._build_tensor_filling_op(tensor.SerializeToString(), "")
          )
          self.assertEqual(len(op.input), 0)
          self.assertEqual(op.output, [tensor.name])
          ws, output = c2_native_run_op(op, inputs=[])
          self.assertEqual(len(output), 1)
          np.testing.assert_almost_equal(output[0], vals)
          np.testing.assert_almost_equal(
              ws.FetchBlob(op.output[0]), vals
          )
  
imports: import os
  import unittest
  from caffe2.python import core
  from caffe2.proto import caffe2_pb2
  import onnx
  from onnx.helper import make_node, make_graph, make_tensor, make_tensor_value_info, make_model
  from caffe2.python.onnx.helper import c2_native_run_net, c2_native_run_op
  from onnx import mapping
  import caffe2.python.onnx.frontend
  import caffe2.python.onnx.backend
  import numpy
  from caffe2.python.models.download import ModelDownloader
  from caffe2.python.onnx.tests.test_utils import TestCase
  import caffe2.python._import_c_extension
label_desc: Use image node_id 15 for calling the TestCaffe2Basic obj's underlying member method code with example usage: obj.test_tensor_filling_ops_c_backend() without return types