code: def test_add_input(self):
      gr = torch._C.Graph()
      foo_value = gr.addInput("foo")
      assert foo_value in gr.inputs()
  
file_path: pytorch/test/jit/test_python_bindings.py
imports: import torch
  from torch.testing import FileCheck
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 7 for calling the TestPythonBindings obj's underlying member method code with example usage: obj.test_add_input() without return types