code: def getobjects(iterable, clsbase, modbase, issignal=False):
      retobjects = list()
  
      for item in iterable or []:
          if issignal:
              sigtokens = item.split("+", 1)
              if len(sigtokens) == 1:  # no + seen
                  sigtype = "longshort"
              else:
                  sigtype, item = sigtokens
  
          tokens = item.split(":", 1)
  
          if len(tokens) == 1:
              modpath = tokens[0]
              name = ""
              kwargs = dict()
          else:
              modpath, name = tokens
              kwtokens = name.split(":", 1)
              if len(kwtokens) == 1:
                  # no '(' found
                  kwargs = dict()
              else:
                  name = kwtokens[0]
                  kwtext = "dict(" + kwtokens[1] + ")"
                  kwargs = eval(kwtext)
  
          if modpath:
              mod, e = loadmodule(modpath)
  
              if not mod:
                  print("")
                  print("Failed to load module %s:" % modpath, e)
                  sys.exit(1)
          else:
              mod = modbase
  
          loaded = getmodclasses(mod=mod, clstype=clsbase, clsname=name)
  
          if not loaded:
              print("No class %s / module %s" % (str(name), modpath))
              sys.exit(1)
  
          if issignal:
              retobjects.append((loaded[0], kwargs, sigtype))
          else:
              retobjects.append((loaded[0], kwargs))
  
      return retobjects
  
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 9 for calling a global function with example usage: getobjects(iterable, clsbase, modbase, issignal) and returns: retobjects