docstr: Simple example with a real nn Module
docstr_tok: ["Simple","example","with","a","real","nn","Module"]
code: def test_linear(self):
      """
      Simple example with a real nn Module
      """
      a = torch.nn.Linear(5, 5)
      b = torch.nn.Linear(5, 5)
      c = torch.nn.Linear(10, 10)
      a = torch.jit.script(a)
      b = torch.jit.script(b)
      c = torch.jit.script(c)
  
      self.assertSameType(a, b)
      self.assertDifferentType(a, c)
  
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 6 for calling the TestTypeSharing obj's underlying member method code with example usage: obj.test_linear() without return types