code: def test_replace_all_uses_with(self):
      net = core.Net("name")
      net.FC(["X", "W"], ["Y"])
      net.FC(["X", "W2"], ["Y2"])
      nn = ng.NNModule(net)
      fc = nn.controlFlow[0]
      test_tensor = nn.dataFlow.createNode(ng.NeuralNetData("T"))
      nn.replaceAllUsesWith(fc.inputs[0], test_tensor)
  
      for op in nn.controlFlow:
          assert op.inputs[0].name == "T"
  
imports: from caffe2.python import core, test_util
  from caffe2.proto import caffe2_pb2
  import caffe2.python.nomnigraph
  from hypothesis import given
  import hypothesis.strategies
  import random
label_desc: Use image node_id 23 for calling the TestBindings obj's underlying member method code with example usage: obj.test_replace_all_uses_with() without return types