code: def teardown(self, np=np):
      """Lives in zipline.__init__ for doctests."""
  
      if self.old_err is not None:
          np.seterr(**self.old_err)
  
      if self.old_opts is not None:
          np.set_printoptions(**self.old_opts)
  
imports: from distutils.version import StrictVersion
  import os
  import numpy
  from trading_calendars import get_calendar
  from .None import data
  from .None import finance
  from .None import gens
  from .None import utils
  from .utils.numpy_utils import numpy_version
  from .utils.pandas_utils import new_pandas
  from .utils.run_algo import run_algorithm
  from ._version import get_versions
  from .algorithm import TradingAlgorithm
  from .None import api
  from zipline import extensions
  from zipline.finance.blotter import Blotter
  from trading_calendars.calendar_utils import global_calendar_dispatcher
label_desc: Use image node_id 3 for calling a global function with example usage: teardown(np) without return types