code: def setbroker(args, cerebro):
      broker = cerebro.getbroker()
  
      if args.cash is not None:
          broker.setcash(args.cash)
  
      commkwargs = dict()
      if args.commission is not None:
          commkwargs["commission"] = args.commission
      if args.margin is not None:
          commkwargs["margin"] = args.margin
      if args.mult is not None:
          commkwargs["mult"] = args.mult
      if args.interest is not None:
          commkwargs["interest"] = args.interest
      if args.interest_long is not None:
          commkwargs["interest_long"] = args.interest_long
  
      if commkwargs:
          broker.setcommission(**commkwargs)
  
      if args.slip_perc is not None:
          cerebro.broker.set_slippage_perc(
              args.slip_perc,
              slip_open=args.slip_open,
              slip_match=not args.no_slip_match,
              slip_out=args.slip_out,
          )
      elif args.slip_fixed is not None:
          cerebro.broker.set_slippage_fixed(
              args.slip_fixed,
              slip_open=args.slip_open,
              slip_match=not args.no_slip_match,
              slip_out=args.slip_out,
          )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import inspect
  import itertools
  import random
  import string
  import sys
  import backtrader
label_desc: Use image node_id 2 for calling a global function with example usage: setbroker(args, cerebro) without return types