<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rotated_Gamma_ml(m,l,phi1,phi2,theta1,theta2,gamma_ml):
 """ This function takes any gamma in the computational frame and rotates it to the cosmic frame. """

    
    rotated_gamma = 0
    
    for ii in range(2*l+1):
        rotated_gamma += Dlmk(l,m,ii-l,phi1,phi2,theta1,theta2).conjugate()*gamma_ml[ii]

    return rotated_gamma