code: def synthesize_inequality(
      cls, name: str, op: str, allow_eq: bool
  ) -> ParsedDef:
      return synthesize_comparison(
          cls,
          name,
          allow_eq,
          raise_on_none=True,
          inner=[
              f"if val1 {op} val2: return True",
              f"elif val2 {op} val1: return False",
          ],
      )
  
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 7 for calling a global function with example usage: synthesize_inequality(cls, name, op, allow_eq) and returns: synthesize_comparison