docstr: Same functions passed in should lead to same types
docstr_tok: ["Same","functions","passed","in","should","lead","to","same","types"]
code: def test_script_function_attribute_same(self):
      """
      Same functions passed in should lead to same types
      """
  
      @torch.jit.script
      def fn(x):
          return x + x
  
      class M(torch.nn.Module):
          def __init__(self, fn):
              super().__init__()
              self.fn = fn
  
          def forward(self, x):
              return self.fn(x)
  
      fn1_mod = M(fn)
      fn2_mod = M(fn)
  
      self.assertSameType(fn1_mod, fn2_mod)
  
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 16 for calling the TestTypeSharing obj's underlying member method code with example usage: obj.test_script_function_attribute_same() and returns: unknown, self