code: def hacking_no_removed_module(logical_line, noqa):
      r
      if noqa:
          return
      line = core.import_normalize(logical_line.strip())
      if line and line.split()[0] == 'import':
          module_name = line.split()[1].split('.')[0]
          if module_name in removed_modules:
              yield 0, ("H237: module %s is "
                        "removed in Python 3" % module_name)
docs: r"""Check for removed modules in Python 3.
  
      Examples:
      Okay: from os import path
      Okay: from os import path as p
      Okay: from os import (path as p)
      Okay: import os.path
      H237: import thread
      Okay: import thread  # noqa
      H237: import commands
      H237: import md5 as std_md5