code: def item_desc_json(self, rule):
      return {
          "rule": rule.name,
          "line": rule.lineno,
          "snakefile": rule.snakefile,
      }
  
file_path: snakemake/snakemake/linting/rules.py
imports: from itertools import chain
  import re
  import sys
  from snakemake.io import is_flagged
  from snakemake.linting import Linter, Lint, links, NAME_PATTERN
label_desc: Use image node_id 2 for calling the RuleLinter obj's underlying member method code with example usage: obj.item_desc_json(rule) and returns: dict