code: def test_namedtuple_good_error(self):
      global _GoogLeNetOutputs  # see [local resolution in python]
      _GoogLeNetOutputs = namedtuple(
          "GoogLeNetOutputs", ["logits", "aux_logits2", "aux_logits1"]
      )
  
      @torch.jit.script
      def foo(x):
          # type: (_GoogLeNetOutputs) -> _GoogLeNetOutputs
          return x
  
      with self.assertRaisesRegex(
          RuntimeError,
          r"aka NamedTuple\(logits, aux_logits2, aux_logits1\)",
      ):
          out = foo(
              _GoogLeNetOutputs(
                  logits="3", aux_logits2="4", aux_logits1="5"
              )
          )
  
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 38 for calling the TestTyping obj's underlying member method code with example usage: obj.test_namedtuple_good_error() and returns: x