code: def show_profit_attribution(round_trips):
      """
      Prints the share of total PnL contributed by each
      traded name.
  
      Parameters
      ----------
      round_trips : pd.DataFrame
          DataFrame with one row per round trip trade.
          - See full explanation in round_trips.extract_round_trips
      ax : matplotlib.Axes, optional
          Axes upon which to plot.
  
      Returns
      -------
      ax : matplotlib.Axes
          The axes that were plotted on.
      """
  
      total_pnl = round_trips["pnl"].sum()
      pnl_attribution = (
          round_trips.groupby("symbol")["pnl"].sum() / total_pnl
      )
      pnl_attribution.name = ""
  
      pnl_attribution.index = pnl_attribution.index.map(
          utils.format_asset
      )
      utils.print_table(
          pnl_attribution.sort_values(
              inplace=False,
              ascending=False,
          ),
          name="Profitability (PnL / PnL total) per name",
          float_format="{:.2%}".format,
      )
  
imports: from __future__ import division
  import datetime
  from collections import OrderedDict
  from functools import wraps
  import empyrical
  import matplotlib
  import matplotlib.patches
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytz
  import scipy
  from matplotlib import figure
  from matplotlib.backends.backend_agg import FigureCanvasAgg
  from matplotlib.ticker import FuncFormatter
  from .None import _seaborn
  from .None import capacity
  from .None import pos
  from .None import timeseries
  from .None import txn
  from .None import utils
  from .utils import APPROX_BDAYS_PER_MONTH, MM_DISPLAY_UNIT
label_desc: Use image node_id 34 for calling a global function with example usage: show_profit_attribution(round_trips) without return types