def diagonal(a, offset=0, axis1=0, axis2=1):
 return a.diagonal(offset, axis1, axis2)

def diagonal ( a , offset = 0 , axis1 = 0 , axis2 = 1 ) : return a . diagonal ( offset , axis1 , axis2 )
returns specified diagonals .