code: def print_deprecated_uses_in(
      readline, path, dep_files, dep_names, lineno_offset
  ):
      tokiter = tokenize.generate_tokens(readline)
      context = [""]
      for typ, tok, start, end, line in tokiter:
          # Remember the previous line -- it might contain
          # the @deprecated decorator.
          if line is not context[-1]:
              context.append(line)
              if len(context) > 10:
                  del context[0]
          esctok = re.escape(tok)
          # Ignore all tokens except deprecated names.
          if not (
              tok in deprecated_classes
              or (
                  tok in deprecated_funcs
                  and re.search(rf"\b{esctok}\s*\(", line)
              )
              or (
                  tok in deprecated_methods
                  and re.search(
                      rf"(?!<\bself)[.]\s*{esctok}\s*\(", line
                  )
              )
          ):
              continue
          # Hack: only complain about read if it's used after a corpus.
          if tok == "read" and not CORPUS_READ_METHOD_RE.search(line):
              continue
          # Ignore deprecated definitions:
          if DEPRECATED_DEF_RE.search("".join(context)):
              continue
          # Print a header for the first use in a file:
          if path not in dep_files:
              print("\n" + term.BOLD + path + term.NORMAL)
              print(f"  {term.YELLOW}linenum{term.NORMAL}")
              dep_files.add(path)
          # Mark the offending token.
          dep_names.add(tok)
          if term.RED:
              sub = term.RED + tok + term.NORMAL
          elif term.BOLD:
              sub = term.BOLD + tok + term.NORMAL
          else:
              sub = "<<" + tok + ">>"
          line = re.sub(rf"\b{esctok}\b", sub, line)
          # Print the offending line.
          print(
              "  {}[{:5d}]{} {}".format(
                  term.YELLOW,
                  start[0] + lineno_offset,
                  term.NORMAL,
                  line.rstrip(),
              )
          )
  
file_path: nltk/tools/find_deprecated.py
imports: import os
  import re
  import sys
  import textwrap
  import tokenize
  from doctest import DocTestParser, register_optionflag
  from cStringIO import StringIO
  import nltk.corpus
  from nltk import defaultdict
label_desc: Use image node_id 5 for calling a global function with example usage: print_deprecated_uses_in(readline, path, dep_files, dep_names, lineno_offset) without return types