<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_name(key):
 """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 """

    definition_dict = definition(key)
    if definition_dict:
        return definition_dict.get('name', key)
    # Else, return the keyword
    return key