code: def get_name(key):
      
      definition_dict = definition(key)
      if definition_dict:
          return definition_dict.get('name', key)
      # Else, return the keyword
      return key
docs: Given a keyword, try to get the name of it.
  
      .. versionadded:: 4.2
  
      Definition dicts are defined in keywords.py. We try to return
      the name if present, otherwise we return none.
  
      keyword = 'layer_purpose'
      kio = safe.utilities.keyword_io.Keyword_IO()
      name = kio.get_name(keyword)
      print name
  
      :param key: A keyword key.
      :type key: str
  
      :returns: The name of the keyword
      :rtype: str