code: def _get_var_from_string(item):
      
      modname, varname = _split_mod_var_names(item)
      if modname:
          mod = __import__(modname, globals(), locals(), [varname], -1)
          return getattr(mod, varname)
      else:
          return globals()[varname]
docs: Get resource variable.