code: def __execute_fromimport(module, modname, import_tuples, verbose=False):
      
      if verbose:
          print('[UTIL_IMPORT] EXECUTING %d FROM IMPORT TUPLES' % (len(import_tuples),))
      from_imports = __get_from_imports(import_tuples)
      for name, fromlist in from_imports:
          full_modname = '.'.join((modname, name))
          tmp = __import__(full_modname, globals(), locals(), fromlist=fromlist, level=0)
          for attrname in fromlist:
              setattr(module, attrname, getattr(tmp, attrname))
      return from_imports
docs: Module From Imports