def is_elem_ref(elem_ref):
return (<EOL>elem_ref<EOL>and isinstance(elem_ref, tuple)<EOL>and len(elem_ref) == <NUM_LIT:3><EOL>and (elem_ref[<NUM_LIT:0>] == ElemRefObj or elem_ref[<NUM_LIT:0>] == ElemRefArr)<EOL>)<EOL>
Returns true if the elem_ref is an element reference

:param elem_ref:
:return: