class_docstr: AST Visitor that processes function calls.
  
  Updates function calls from old API version to new API version using a given
  change spec.
class_docstr_tok: ["AST","Visitor","that","processes","function","calls",".","Updates","function","calls","from","old","API","version","to","new","API","version","using","a","given","change","spec","."]
docstr: Adds a warning if full_name is a deprecated module.
docstr_tok: ["Adds","a","warning","if","full_name","is","a","deprecated","module","."]
code: def _maybe_add_module_deprecation_warning(
      self, node, full_name, whole_name
  ):
      """Adds a warning if full_name is a deprecated module."""
      warnings = self._api_change_spec.module_deprecations
      if full_name in warnings:
          level, message = warnings[full_name]
          message = message.replace("<function name>", whole_name)
          self.add_log(
              level,
              node.lineno,
              node.col_offset,
              "Using member %s in deprecated module %s. %s"
              % (whole_name, full_name, message),
          )
          return True
      else:
          return False
  
imports: import ast
  import collections
  import os
  import re
  import shutil
  import sys
  import tempfile
  import traceback
  import pasta
label_desc: Use image node_id 14 for calling the _PastaEditVisitor obj's underlying member method code with example usage: obj._maybe_add_module_deprecation_warning(node, full_name, whole_name) and returns: True, False