code: def get_line(match, snakefile):
      return snakefile[: match.start()].count("\n") + 1
  
file_path: snakemake/snakemake/linting/snakefiles.py
imports: import re
  from itertools import chain
  from snakemake.linting import Linter, Lint, links, NAME_PATTERN
label_desc: Use image node_id 1 for calling a global function with example usage: get_line(match, snakefile) and returns: unknown