parameters: (self, flag_obj)
return_statement: return False
docstring: Checks whether a Flag object is registered under some name.
  
      Note: this is non trivial: in addition to its normal name, a flag
      may have a short name too.  In self.FlagDict(), both the normal and
      the short name are mapped to the same flag object.  E.g., calling
      only "del FLAGS.short_name" is not unregistering the corresponding
      Flag object (it is still registered under the longer name).
  
      Args:
        flag_obj: A Flag object.
  
      Returns:
        A boolean: True iff flag_obj is registered under some name.
docstring_summary: Checks whether a Flag object is registered under some name.
docstring_tokens: Checks whether a Flag object is registered under some name .
function: def _FlagIsRegistered(self, flag_obj):
      """Checks whether a Flag object is registered under some name.
  
      Note: this is non trivial: in addition to its normal name, a flag
      may have a short name too.  In self.FlagDict(), both the normal and
      the short name are mapped to the same flag object.  E.g., calling
      only "del FLAGS.short_name" is not unregistering the corresponding
      Flag object (it is still registered under the longer name).
  
      Args:
        flag_obj: A Flag object.
  
      Returns:
        A boolean: True iff flag_obj is registered under some name.
      """
      flag_dict = self.FlagDict()
      # Check whether flag_obj is registered under its long name.
      name = flag_obj.name
      if flag_dict.get(name, None) == flag_obj:
        return True
      # Check whether flag_obj is registered under its short name.
      short_name = flag_obj.short_name
      if (short_name is not None and
          flag_dict.get(short_name, None) == flag_obj):
        return True
      # The flag cannot be registered under any other name, so we do not
      # need to do a full search through the values of self.FlagDict().
      return False
function_tokens: def _FlagIsRegistered ( self , flag_obj ) : flag_dict = self . FlagDict ( ) # Check whether flag_obj is registered under its long name. name = flag_obj . name if flag_dict . get ( name , None ) == flag_obj : return True # Check whether flag_obj is registered under its short name. short_name = flag_obj . short_name if ( short_name is not None and flag_dict . get ( short_name , None ) == flag_obj ) : return True # The flag cannot be registered under any other name, so we do not # need to do a full search through the values of self.FlagDict(). return False