<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hashable(val):
 """Test if `val` is hashable and if not, get it's string representation Parameters val: object Any (possibly not hashable) python object Returns ------- val or string The given `val` if it is hashable or it's string representation"""

    if val is None:
        return val
    try:
        hash(val)
    except TypeError:
        return repr(val)
    else:
        return val