code: def test_enum_comp_diff_classes(self):
      class Foo(Enum):
          ITEM1 = 1
          ITEM2 = 2
  
      class Bar(Enum):
          ITEM1 = 1
          ITEM2 = 2
  
      make_global(Foo, Bar)
  
      @torch.jit.script
      def enum_comp(x: Foo) -> bool:
          return x == Bar.ITEM1
  
      FileCheck().check("prim::Constant").check_same("Bar.ITEM1").check(
          "aten::eq"
      ).run(str(enum_comp.graph))
  
      self.assertEqual(enum_comp(Foo.ITEM1), False)
  
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 3 for calling the TestEnum obj's underlying member method code with example usage: obj.test_enum_comp_diff_classes() and returns: unknown