code: def get_from_module(
      identifier,
      module_params,
      module_name,
      instantiate=False,
      kwargs=None,
  ):
      if isinstance(identifier, six.string_types):
          res = module_params.get(identifier)
          if not res:
              res = module_params.get(identifier.lower())
              if not res:
                  raise Exception(
                      "Invalid "
                      + str(module_name)
                      + ": "
                      + str(identifier)
                  )
          if instantiate and not kwargs:
              return res()
          elif instantiate and kwargs:
              return res(**kwargs)
          else:
              return res
      return identifier
  
imports: from __future__ import division, print_function, absolute_import
  import six
  import string
  import random
  import numpy
  import tensorflow.compat.v1
  from tensorflow.python import pywrap_tensorflow
  import tflearn.variables
label_desc: Use image node_id 1 for calling a global function with example usage: get_from_module(identifier, module_params, module_name, instantiate, kwargs) and returns: identifier, res, res, res