code: def synthesize__hash__(cls) -> ParsedDef:
      return compose_fn(
          cls,
          "__hash__",
          [
              # This is just a placeholder to prevent compilation from failing; this won't even get called at
              # all right now because the TorchScript interpreter doesn't call custom __hash__ implementations
              "raise NotImplementedError('__hash__ is not supported for dataclasses in TorchScript')"
          ],
          signature="(self) -> int",
      )
  
file_path: pytorch/torch/jit/_dataclass_impls.py
imports: import ast
  import dataclasses
  import inspect
  import os
  from functools import partial
  from typing import Callable, Dict, List
  from torch._jit_internal import FAKE_FILENAME_PREFIX, is_optional
  from torch._sources import ParsedDef, SourceContext
label_desc: Use image node_id 5 for calling a global function with example usage: synthesize__hash__(cls) and returns: compose_fn