code: def print_error_message(
      python_path: str,
      node: ast.AST,
      name: str,
      message: str,
      severity: str = "warning",
  ) -> None:
      """
      This function will print linter error in a format that is compatible with
      our internal tools.
  
      Args:
          python_path: Path to the file with the error
          node: AST node describing snippet of code
          name: Name of the linter error
          message: Error message to show to user
  
      Optional Args:
          severity: How severe should be considered the error. Default level: 'error'
  
      Returns:
          None
      """
      lint_item = {
          "path": python_path,
          "line": node.lineno,
          "char": node.col_offset + 1,
          "severity": severity,
          "name": name,
          "description": message,
      }
      print(json.dumps(lint_item))
  
file_path: torchrec/torchrec/linter/module_linter.py
imports: import ast
  import json
  from argparse import ArgumentParser, Namespace
  from typing import Any, Dict, List, Optional, Tuple
label_desc: Use image node_id 1 for calling a global function with example usage: print_error_message(python_path, node, name, message, severity) without return types