parameters: (self, flagname, default=None)
return_statement: return default
docstring: Return the ID of the module defining this flag, or default.
  
      Args:
        flagname: Name of the flag to lookup.
        default: Value to return if flagname is not defined. Defaults
            to None.
  
      Returns:
        The ID of the module which registered the flag with this name.
        If no such module exists (i.e. no flag with this name exists),
        we return default.
docstring_summary: Return the ID of the module defining this flag, or default.
docstring_tokens: Return the ID of the module defining this flag or default .
function: def FindModuleIdDefiningFlag(self, flagname, default=None):
      """Return the ID of the module defining this flag, or default.
  
      Args:
        flagname: Name of the flag to lookup.
        default: Value to return if flagname is not defined. Defaults
            to None.
  
      Returns:
        The ID of the module which registered the flag with this name.
        If no such module exists (i.e. no flag with this name exists),
        we return default.
      """
      for module_id, flags in self.FlagsByModuleIdDict().iteritems():
        for flag in flags:
          if flag.name == flagname or flag.short_name == flagname:
            return module_id
      return default
function_tokens: def FindModuleIdDefiningFlag ( self , flagname , default = None ) : for module_id , flags in self . FlagsByModuleIdDict ( ) . iteritems ( ) : for flag in flags : if flag . name == flagname or flag . short_name == flagname : return module_id return default