code: def test_typed_enum(self):
      class Color(int, Enum):
          RED = 1
          GREEN = 2
  
      @torch.jit.script
      def is_red(x: Color) -> bool:
          return x == Color.RED
  
imports: import os
  import sys
  import torch
  from torch.testing import FileCheck
  from enum import Enum
  from typing import Any, List
  from torch.testing._internal.jit_utils import JitTestCase, make_global
label_desc: Use image node_id 17 for calling the TestEnum obj's underlying member method code with example usage: obj.test_typed_enum() and returns: unknown