<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def time(value):
 """ Returns a time literal if value is likely coercible to a time Parameters value : time value as string Returns -------- result : TimeScalar """

    if isinstance(value, str):
        value = to_time(value)
    return literal(value, type=dt.time)