code: def check_imports(file_path) -> CheckResult:
      with open(file_path, "rb") as src_file:
          body = src_file.read()
          lines = body.splitlines()
          parsed = ast.parse(body, filename=file_path)
      # scan for imports
      abs_faults = _check_absolute_import(parsed)
  
      return CheckResult(file_path, lines, abs_faults, None, None)
  
file_path: mars/ci/importcheck.py
imports: import ast
  import os
  import sys
  import textwrap
  from pathlib import PurePath
  from typing import List, NamedTuple, Optional, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: check_imports(file_path) and returns: CheckResult