class_docstr: Deprecated import, with redirection + warning.
  
  Examples
  --------
  Suppose you previously had in some module::
  
      from foo import spam
  
  If this has to be deprecated, do::
  
      spam = DeprecatedImport("foo.spam", "baz")
  
  to redirect users to use "baz" module instead.
class_docstr_tok: ["Deprecated","import",",","with","redirection","+","warning",".","Examples","--","--","--","--","Suppose","you","previously","had","in","some","module",":",":","from","foo","import","spam","If","this","has","to","be","deprecated",",","do",":",":","spam","=","DeprecatedImport","(","``","foo.spam","''",",","``","baz","''",")","to","redirect","users","to","use","``","baz","''","module","instead","."]
code: def __dir__(self):
      return dir(self._mod)
  
imports: from __future__ import division, print_function, absolute_import
  import functools
  import operator
  import sys
  import warnings
  import numbers
  from collections import namedtuple
  from multiprocessing import Pool
  import inspect
  import numpy
label_desc: Use image node_id 2 for calling the DeprecatedImport obj's underlying member method code with example usage: obj.__dir__() and returns: dir