def ADOPT_module_key_flags(module, flag_values=FLAGS):
 if isinstance(module, str):
  raise FlagsError(('Received module name %s; expected a module object.' % module))
 _InternalDeclareKeyFlags([f.name for f in flag_values._GetKeyFlagsForModule(module.__name__)], flag_values=flag_values)
 if (module == _GetThisModuleObjectAndName()[0]):
  _InternalDeclareKeyFlags([f.name for f in _SPECIAL_FLAGS.FlagDict().values()], flag_values=_SPECIAL_FLAGS, key_flag_values=flag_values)

def ADOPT_module_key_flags ( module , flag_values = FLAGS ) : if isinstance ( module , str ) : raise FlagsError ( ( 'Received module name %s; expected a module object.' % module ) ) _InternalDeclareKeyFlags ( [ f . name for f in flag_values . _GetKeyFlagsForModule ( module . __name__ ) ] , flag_values = flag_values ) if ( module == _GetThisModuleObjectAndName ( ) [ 0 ] ) : _InternalDeclareKeyFlags ( [ f . name for f in _SPECIAL_FLAGS . FlagDict ( ) . values ( ) ] , flag_values = _SPECIAL_FLAGS , key_flag_values = flag_values )
declares that all flags key to a module are key to the current module .