code: def stop(self):
      tused = time_clock() - self.tstart
      if self.p.printdata:
          self.log("Time used: %s" % str(tused))
          self.log(
              "Final portfolio value: %.2f" % self.broker.getvalue()
          )
          self.log("Final cash value: %.2f" % self.broker.getcash())
          self.log("-------------------------")
  
          print("buycreate")
          print(self.buycreate)
          print("sellcreate")
          print(self.sellcreate)
          print("buyexec")
          print(self.buyexec)
          print("sellexec")
          print(self.sellexec)
  
      else:
          if not self.p.stocklike:
              assert "%.2f" % self.broker.getvalue() == "12795.00"
              assert "%.2f" % self.broker.getcash() == "11795.00"
          else:
              assert "%.2f" % self.broker.getvalue() == "10284.10"
              assert "%.2f" % self.broker.getcash() == "6164.16"
  
          assert self.buycreate == BUYCREATE
          assert self.sellcreate == SELLCREATE
          assert self.buyexec == BUYEXEC
          assert self.sellexec == SELLEXEC
  
file_path: backtrader/tests/test_strategy_unoptimized.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import time
  import testcommon
  import backtrader
  import backtrader.indicators
label_desc: Use image node_id 5 for calling the TestStrategy obj's underlying member method code with example usage: obj.stop() without return types