<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_arrayref(u):
 """ To the parser, funcall is indistinguishable from rhs array reference. But LHS references can be converted to arrayref nodes. """

    if u.__class__ is node.funcall:
        try:
            if u.func_expr.props in "UR": # upd,ref
                u.__class__ = node.arrayref
        except:
            pass