<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def shape(tensor):
    '''
    Get shape of variable.
    Return type is tuple.
    '''
    temp_s = tensor.get_shape()
    return tuple([temp_s[i].value for i in range(0, len(temp_s))])