<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _order_as_range(order):
 """Convert a hyphenated string representing order for derivative or exponential terms into a range object that can be passed as input to the appropriate expansion function."""

    order = order.split('-')
    order = [int(o) for o in order]
    if len(order) > 1:
        order = range(order[0], (order[-1] + 1))
    return order