code: def _check_absolute_import(node: ast.AST) -> List[Tuple[int, int]]:
      res = set()
      if isinstance(node, ast.Import):
          for import_name in node.names:
              if import_name.name.startswith("mars."):
                  res.add((node.lineno, node.end_lineno))
      elif isinstance(node, ast.ImportFrom):
          if node.level == 0 and node.module.startswith("mars."):
              res.add((node.lineno, node.end_lineno))
      elif getattr(node, "body", []):
          for body_item in node.body:
              res.update(_check_absolute_import(body_item))
      return sorted(res)
  
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 1 for calling a global function with example usage: _check_absolute_import(node) and returns: sorted