docstr: Test that types are not shared if the exclusion of their
  ignored attributes makes them not equal.
docstr_tok: ["Test","that","types","are","not","shared","if","the","exclusion","of","their","ignored","attributes","makes","them","not","equal","."]
code: def test_type_not_shared_ignored_attributes(self):
      """
      Test that types are not shared if the exclusion of their
      ignored attributes makes them not equal.
      """
  
      class A(torch.nn.Module):
          __jit_ignored_attributes__ = ["a"]
  
          def __init__(self, a, b, c):
              super().__init__()
              self.a = a
              self.b = b
              self.c = c
  
          def forward(self, x):
              return x
  
      mod = A(torch.nn.Linear(5, 5), 5, "string")
      s1 = torch.jit.script(mod)
      A.__jit_ignored_attributes__ = ["a", "b"]
      s2 = torch.jit.script(mod)
  
      # The types of s1 and s2 should differ. Although they are instances
      # of A, __jit_ignored_attributes__ was modified before scripting s2,
      # so the set of ignored attributes is different between s1 and s2.
      self.assertDifferentType(s1, s2)
  
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 27 for calling the TestTypeSharing obj's underlying member method code with example usage: obj.test_type_not_shared_ignored_attributes() and returns: x