code: def print_lint_message(
      path: Path, job: Dict[str, Any], sync_tag: str
  ) -> None:
      job_id = next(iter(job.keys()))
      with open(path) as f:
          lines = f.readlines()
      for i, line in enumerate(lines):
          if f"{job_id}:" in line:
              line_number = i + 1
  
      lint_message = LintMessage(
          path=str(path),
          line=line_number,
          char=None,
          code="WORKFLOWSYNC",
          severity=LintSeverity.ERROR,
          name="workflow-inconsistency",
          original=None,
          replacement=None,
          description=f"Job doesn't match other jobs with sync-tag: '{sync_tag}'",
      )
      print(json.dumps(lint_message._asdict()), flush=True)
  
file_path: pytorch/tools/linter/adapters/workflow_consistency_linter.py
imports: import argparse
  import itertools
  import json
  from collections import defaultdict
  from enum import Enum
  from pathlib import Path
  from typing import Any, Dict, Iterable, NamedTuple, Optional
  from yaml import dump, load
label_desc: Use image node_id 4 for calling a global function with example usage: print_lint_message(path, job, sync_tag) without return types