code: def getmodfunctions(mod, funcname=None):
      members = inspect.getmembers(
          mod, inspect.isfunction
      ) + inspect.getmembers(mod, inspect.ismethod)
  
      funclist = list()
      for name, member in members:
          if funcname:
              if name == funcname:
                  funclist.append(member)
                  break
          else:
              funclist.append(member)
  
      return funclist
  
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 5 for calling a global function with example usage: getmodfunctions(mod, funcname) and returns: funclist