code: def check_file(filename: str) -> List[LintMessage]:
      with open(filename, "rb") as f:
          original = f.read().decode("utf-8")
      replacement = ""
      with open(filename) as f:
          lines = f.readlines()
          for line in lines:
              if len(line.strip()) > 0:
                  replacement += line
                  replacement += "\n" * 3
          replacement = replacement[:-3]
  
          if replacement == original:
              return []
  
          return [
              LintMessage(
                  path=filename,
                  line=None,
                  char=None,
                  code="MERGE_CONFLICTLESS_CSV",
                  severity=LintSeverity.WARNING,
                  name="format",
                  original=original,
                  replacement=replacement,
                  description="Run `lintrunner -a` to apply this patch.",
              )
          ]
  
file_path: pytorch/tools/linter/adapters/no_merge_conflict_csv_linter.py
imports: import argparse
  import concurrent.futures
  import json
  import logging
  import os
  import sys
  from enum import Enum
  from typing import Any, List, NamedTuple, Optional
label_desc: Use image node_id 2 for calling a global function with example usage: check_file(filename) and returns: list, list