code: def notify_trade(self, trade):
      if trade.isclosed:
          print(
              "Trade closed with P&L: Gross {} Net {}".format(
                  trade.pnl, trade.pnlcomm
              )
          )
  
file_path: backtrader/samples/credit-interest/credit-interest.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import collections
  import datetime
  import itertools
  import backtrader
label_desc: Use image node_id 2 for calling the St obj's underlying member method code with example usage: obj.notify_trade(trade) without return types