This is from the tests at "Robotics course" taken on edX
The course has starter code and helper functions and the assignment was to fill-up a certain to implement the details of concepts like Transformation Matrix, Forward Kinematics, Inverse Kinematics and Stochastic Motion Plaanning- RRT (Rapidly-exploring Random Tree).
A 7-DOF robot is used in that course.