code: def check_file(filename: str) -> Optional[LintMessage]:
      is_executable = os.access(filename, os.X_OK)
      if is_executable:
          return LintMessage(
              path=filename,
              line=None,
              char=None,
              code=LINTER_CODE,
              severity=LintSeverity.ERROR,
              name="executable-permissions",
              original=None,
              replacement=None,
              description="This file has executable permission; please remove it by using `chmod -x`.",
          )
      return None
  
file_path: pytorch/tools/linter/adapters/exec_linter.py
imports: import argparse
  import json
  import logging
  import os
  import sys
  from enum import Enum
  from typing import NamedTuple, Optional
label_desc: Use image node_id 1 for calling a global function with example usage: check_file(filename) and returns: None, LintMessage