docstr: Test classmethods on class types.
docstr_tok: ["Test","classmethods","on","class","types","."]
code: def test_classmethod(self):
      """
      Test classmethods on class types.
      """
  
      @torch.jit.script
      class ClassWithClassMethod:
          def __init__(self, a: int):
              self.a: int = a
  
          def __eq__(self, other: "ClassWithClassMethod"):
              return self.a == other.a
  
          @classmethod
          def create(cls, a: int) -> "ClassWithClassMethod":
              return cls(a)
  
      make_global(ClassWithClassMethod)
  
      def test_function(a: int) -> "ClassWithClassMethod":
          x = ClassWithClassMethod(a)
          # Support calling classmethod with an instance
          # Calling with the class is not supported.
          return x.create(a)
  
      self.checkScript(test_function, (1,))
  
imports: import io
  import os
  import sys
  import unittest
  import torch
  import torch.nn
  from torch.testing import FileCheck
  from typing import Any
  from torch.testing._internal.jit_utils import JitTestCase, make_global
  import torch.testing._internal.jit_utils
  from torch.testing._internal.common_utils import IS_SANDCASTLE, skipIfTorchDynamo
  from typing import List, Tuple, Iterable, Optional, Dict
label_desc: Use image node_id 37 for calling the TestClassType obj's underlying member method code with example usage: obj.test_classmethod() and returns: x, unknown, cls