code: def getmodclasses(mod, clstype, clsname=None):
      clsmembers = inspect.getmembers(mod, inspect.isclass)
  
      clslist = list()
      for name, cls in clsmembers:
          if not issubclass(cls, clstype):
              continue
  
          if clsname:
              if clsname == name:
                  clslist.append(cls)
                  break
          else:
              clslist.append(cls)
  
      return clslist
  
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 4 for calling a global function with example usage: getmodclasses(mod, clstype, clsname) and returns: clslist