code: def print_deprecated_uses(paths):
      dep_names = set()
      dep_files = set()
      for path in sorted(paths):
          if os.path.isdir(path):
              dep_names.update(
                  print_deprecated_uses(
                      [os.path.join(path, f) for f in os.listdir(path)]
                  )
              )
          elif path.endswith(".py"):
              print_deprecated_uses_in(
                  open(path).readline, path, dep_files, dep_names, 0
              )
          elif path.endswith(".doctest") or path.endswith(".txt"):
              for example in DocTestParser().get_examples(
                  open(path).read()
              ):
                  ex = StringIO(example.source)
                  try:
                      print_deprecated_uses_in(
                          ex.readline,
                          path,
                          dep_files,
                          dep_names,
                          example.lineno,
                      )
                  except tokenize.TokenError:
                      print(
                          term.RED + "Caught TokenError -- "
                          "malformatted doctest?" + term.NORMAL
                      )
      return dep_names
  
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 4 for calling a global function with example usage: print_deprecated_uses(paths) and returns: dep_names