code: def test_schema_info_bind_basic(self):
      class SchemaInfoBindTestMode(TorchDispatchMode):
          def __init__(self, test_self):
              self.test_self = test_self
  
          def __torch_dispatch__(
              self, func, types, args=(), kwargs=None
          ):
              named_arg_list = normalize_function(
                  func, args, kwargs, normalize_to_only_use_kwargs=True
              ).kwargs
              schema_info_value_test = torch._C._SchemaInfo(
                  func._schema
              )
              schema_info_values_test = torch._C._SchemaInfo(
                  func._schema
              )
              self.test_self.assertFalse(
                  schema_info_value_test.may_alias(
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 0
                      ),
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 1
                      ),
                  )
              )
              self.test_self.assertFalse(
                  schema_info_values_test.may_alias(
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 0
                      ),
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 1
                      ),
                  )
              )
              for i in named_arg_list:
                  schema_info_value_test.add_argument_value(
                      i, named_arg_list[i]
                  )
              schema_info_values_test.add_argument_values(
                  named_arg_list
              )
              self.test_self.assertTrue(
                  schema_info_value_test.may_alias(
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 0
                      ),
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 1
                      ),
                  )
              )
              self.test_self.assertTrue(
                  schema_info_values_test.may_alias(
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 0
                      ),
                      torch._C._SchemaArgument(
                          torch._C._SchemaArgType.input, 1
                      ),
                  )
              )
  
              return func(*args, **kwargs)
  
      x = torch.rand((3, 3))
      with SchemaInfoBindTestMode(self) as schemaInfoCheck:
          x.add(x)
  
imports: import os
  import sys
  import torch
  from torch.utils._pytree import tree_map
  import unittest
  from torch.testing._internal.common_utils import run_tests
  from torch.fx.operator_schemas import normalize_function
  from torch._subclasses.schema_check_mode import SchemaCheckMode
  from torch.utils._python_dispatch import TorchDispatchMode
  from torch.testing._internal.common_methods_invocations import op_db
  from torch.testing._internal.jit_utils import JitTestCase
  from torch.testing._internal.common_device_type import ops, OpDTypes, instantiate_device_type_tests
label_desc: Use image node_id 36 for calling the TestSchemaCheck obj's underlying member method code with example usage: obj.test_schema_info_bind_basic() and returns: func