docstr: Test that types are shared if the exclusion of their
  ignored attributes makes them equal.
docstr_tok: ["Test","that","types","are","shared","if","the","exclusion","of","their","ignored","attributes","makes","them","equal","."]
code: def test_type_shared_ignored_attributes(self):
      """
      Test that types are shared if the exclusion of their
      ignored attributes makes them equal.
      """
  
      class A(torch.nn.Module):
          __jit_ignored_attributes__ = ["a"]
  
          def __init__(self, a, b):
              super().__init__()
              self.a = a
              self.b = b
  
          def forward(self, x):
              return x
  
      a_with_linear = A(torch.nn.Linear(5, 5), 5)
      a_with_string = A("string", 10)
  
      # Both should have the same type because the attribute
      # that differs in type is ignored and the common attribute
      # has the same type.
      self.assertSameType(a_with_linear, a_with_string)
  
imports: import os
  import sys
  import io
  import torch
  from torch.testing._internal.jit_utils import JitTestCase
  from torch.testing._internal.common_utils import suppress_warnings
label_desc: Use image node_id 26 for calling the TestTypeSharing obj's underlying member method code with example usage: obj.test_type_shared_ignored_attributes() and returns: x