code: def setup(
      self,
      np=np,
      numpy_version=numpy_version,
      StrictVersion=StrictVersion,
      new_pandas=new_pandas,
  ):
      """Lives in zipline.__init__ for doctests."""
  
      if numpy_version >= StrictVersion("1.14"):
          self.old_opts = np.get_printoptions()
          np.set_printoptions(legacy="1.13")
      else:
          self.old_opts = None
  
      if new_pandas:
          self.old_err = np.geterr()
          # old pandas has numpy compat that sets this
          np.seterr(all="ignore")
      else:
          self.old_err = None
  
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 2 for calling a global function with example usage: setup(np, numpy_version, StrictVersion, new_pandas) without return types