code: def _load_config_python(fname):
      config = {}
  
      config_module = importlib.import_module(fname.rstrip(".py"))
      for key in dir(config_module):
          if not (key.startswith("__") and key.endswith("__")):
              config[key] = getattr(config_module, key)
  
      return config
  
file_path: texar/texar/tf/utils/utils_io.py
imports: from io import open
  import os
  import importlib
  import yaml
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _load_config_python(fname) and returns: config