code: def test_namedtuple_redefine(self):
      global _1, _2
      _1 = namedtuple(
          "GoogLeNetOutputs", ["logits", "aux_logits2", "aux_logits1"]
      )
      _2 = namedtuple("GoogLeNetOutputs", ["different"])
  
      with self.assertRaisesRegex(RuntimeError, r"redefine"):
  
          @torch.jit.script
          def foo(x, y):
              # type: (_1, _2) -> _1
              return x
  
imports: import os
  import sys
  import torch
  from torch.testing._internal.jit_utils import JitTestCase, make_global
  from torch.testing._internal.common_utils import IS_WINDOWS
  from collections import namedtuple
  from typing import List, Tuple, Dict, NamedTuple
label_desc: Use image node_id 36 for calling the TestTyping obj's underlying member method code with example usage: obj.test_namedtuple_redefine() and returns: x