code: def find_doc_for(ast_entry, body_lines):
      lineno = ast_entry.lineno - 1
      line_io = io.BytesIO(body_lines[lineno].encode())
      try:
          tokens = tokenize(line_io.readline) or []
          line_comments = [
              token.string for token in tokens if token.type == COMMENT
          ]
  
          if line_comments:
              formatted_lcs = [
                  line[1:].strip() for line in line_comments
              ]
              filtered_lcs = [
                  line for line in formatted_lcs if not is_ignored(line)
              ]
              if filtered_lcs:
                  return filtered_lcs[0]
      except TokenError:
          pass
  
      lineno -= 1
      while lineno >= 0:
          if iscomment(body_lines[lineno]):
              comment = body_lines[lineno].strip("# ")
              if not is_ignored(comment):
                  return comment
          if not body_lines[lineno].strip() == "":
              return None
          lineno -= 1
      return None
  
imports: import ast
  import inspect
  import io
  import re
  import textwrap
  import token
  from copy import copy
  from sacred import SETTINGS
  from sacred.config.config_summary import ConfigSummary
  from sacred.config.utils import dogmatize, normalize_or_die, recursive_fill_in
  from sacred.config.signature import get_argspec
  from sacred.utils import ConfigError
  from tokenize import generate_tokens, tokenize, TokenError, COMMENT
label_desc: Use image node_id 8 for calling a global function with example usage: find_doc_for(ast_entry, body_lines) and returns: None, None, filtered_lcs, comment