code: def timer(msg_body, previous_time):
      current_time = time()
      run_time = current_time - previous_time
      message = "\nFinished " + msg_body + " (required {:.2f} seconds)."
      print(message.format(run_time))
  
      return current_time
  
imports: from __future__ import division
  import warnings
  from time import time
  import empyrical
  from IPython.display import display, Markdown
  import matplotlib.gridspec
  import matplotlib.pyplot
  import pandas
  from .None import _seaborn
  from .None import capacity
  from .None import perf_attrib
  from .None import plotting
  from .None import pos
  from .None import round_trips
  from .None import timeseries
  from .None import txn
  from .None import utils
label_desc: Use image node_id 1 for calling a global function with example usage: timer(msg_body, previous_time) and returns: current_time