code: def format_asset(asset):
      """
      If zipline asset objects are used, we want to print them out prettily
      within the tear sheet. This function should only be applied directly
      before displaying.
      """
  
      try:
          import zipline.assets
      except ImportError:
          return asset
  
      if isinstance(asset, zipline.assets.Asset):
          return asset.symbol
      else:
          return asset
  
imports: from __future__ import division
  import warnings
  from itertools import cycle
  from matplotlib.pyplot import cm
  import numpy
  import pandas
  from IPython.display import display, HTML
  import empyrical.utils
  from .None import pos
  from .None import txn
label_desc: Use image node_id 4 for calling a global function with example usage: format_asset(asset) and returns: asset, asset, asset