<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def safe_index(elements: Sequence[T], value: T):
 """Find the location of `value` in `elements`, return -1 if `value` is not found instead of raising ``ValueError``. Parameters elements value Returns ------- int Examples -------- 1 -1 """

    try:
        return elements.index(value)
    except ValueError:
        return -1